From: David Chow <davidchow@rcn.com.hk>
To: Daniel Phillips <phillips@bonn-fries.net>
Cc: Linus Torvalds <torvalds@transmeta.com>,
linux-kernel@vger.kernel.org, Alexander Viro <viro@math.psu.edu>,
Arnaldo Carvalho de Melo <acme@conectiva.com.br>,
linux-fsdevel@vger.kernel.org
Subject: Re: [RFC] [WIP] Unbork fs.h, 3 of 3
Date: Tue, 01 Jan 2002 11:55:16 +0800 [thread overview]
Message-ID: <3C313324.3010504@rcn.com.hk> (raw)
In-Reply-To: <Pine.LNX.4.33.0112311004580.1404-100000@penguin.transmeta.com> <E16L8JK-0000ao-00@starship.berlin>
Just some comments and questions about the new fs.h .. its great to hear
improvements in the new year!
Are you people going to put this on the 2.5? It seems you are keeping
the generic_ip pointer for compatibility. And I guess this is what other
file systems (those not included in the standardkernel sources) are
using, at least I am the one.
Daniel Phillips wrote:
>On December 31, 2001 07:16 pm, Linus Torvalds wrote:
>
>>How about using a descriptor structure instead of the macro, and making
>>the filesystem declaration syntax look more like
>>
>> static struct file_system_type ext2_descriptor = {
>> owner: THIS_MODULE,
>> fs_flags: FS_REQUIRES_DEV,
>> name: "ext2",
>> read_super: ext2_read_super,
>> super_size: sizeof(ext2_sb_info),
>>
> ^^^^^---> changed sb to super, lines up better
>
>> inode_size: sizeof(struct ext2_inode_info)
>> };
>>
I am using the generic_ip to hold my fs inode data pointer. During the
implementation, I tested both approaches... but it seems not sigficant
in detection of inode cache allocation overheads in read_inode(). Its
worth to talk about memory consumptions because it is silly to allocate
the largest possible inode cache sizes. I strongly agree with the new fs
declaration interface becuase of higher efficiency and less overhead,
but it seems more and more fs are supported in Linux, the effort to
patch all fs'es is a lot of work.
I am working on a compression file systmes, many thing varies such that
I have to use dynamically link allocated structures in the inode cache.
>>
>>which is more readable, and inherently documents _what_ those things are.
>>
>>[snip halfway macro format]
>>
>>What do you think?
>>
>
>It's much nicer, here's (1 of 3) again, with the Linus-style ext2_fs
>declaration.
>
>--
>Daniel
>
For the remount issue, I don't think its just affect the root
filesystem, for me I also reload other settings during a remount. For
feature oriented filesystems, remount may be use more frequent then
umount and mount. Other admins may also remount their /usr fs and other
protected fs to read-only for safe after altering their fs. Why not
changing the remount behaviour in VFS not to call module_exit()? I also
can't see why VFS has to call module_exit() in remount if we have
remount() in super_operations ... I think remount operations are fs
specific and shuold pass this job to super_operations->remount . I think
it is a better way to solve the root fs problem. But it would require
even more work to get all fs to obey the new standard. If you want nice
and clean efficient solutions, work is must anyway... good luck.
David Chow
next prev parent reply other threads:[~2002-01-01 3:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-31 5:36 [RFC] [WIP] Unbork fs.h, 3 of 3 Daniel Phillips
2001-12-31 18:16 ` Linus Torvalds
2001-12-31 19:01 ` Arnaldo Carvalho de Melo
2001-12-31 19:41 ` Daniel Phillips
2002-01-01 3:55 ` David Chow [this message]
2002-01-02 11:01 ` Daniel Phillips
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C313324.3010504@rcn.com.hk \
--to=davidchow@rcn.com.hk \
--cc=acme@conectiva.com.br \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=phillips@bonn-fries.net \
--cc=torvalds@transmeta.com \
--cc=viro@math.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox