From: Jan Blunck <jblunck@suse.de>
To: hooanon05@yahoo.co.jp
Cc: "Jörn Engel" <joern@logfs.org>,
akpm@linux-foundation.org, mm-commits@vger.kernel.org,
agruen@suse.de, hch@lst.de, linux-fsdevel@vger.kernel.org,
viro@zeniv.linux.org.uk
Subject: Re: + embed-a-struct-path-into-struct-nameidata-instead-of-nd-dentrymnt.pa tch added to -mm tree
Date: Wed, 7 Nov 2007 10:04:31 +0100 [thread overview]
Message-ID: <20071107090431.GS5619@hasse.suse.de> (raw)
In-Reply-To: <E1IpOgU-0000vr-9M@jroun>
Junjiro Okajima,
first of all thanks for the feedback on my union mount patches.
On Tue, Nov 06, hooanon05@yahoo.co.jp wrote:
> Whiteouts in your code can be a serious memory pressure, since they are
> kept in dcache. I know the inode for whiteouts exists only one and it is
> shared, but dentries for whiteouts are not. They are created for each
> name and resident in dcache.
> I am afraid it can be a problem easily when you create and unlink a
> temporary file many times. Generally their filenames are unique.
The problem that you describe is only existing on tmpfs as the topmost union
layer. In all other cases the whiteout dentries can be shrinked like the
dentries of other filetypes too. This is the price you have to pay for using
union mounts because somewhere this information must be stored. With ext3 or
other diskbased filesystems the whiteouts are stored on disk like normal
files. Therefore the dentry cache can be shrinked and reread by a lookup.
> Regarding to struct path in nameidata, I have no objection
> basically. But I think it is better to create macros for backward
> compatibility as struct file did.
In case of f_dentry and f_mnt that was easy because you could use macros for
it. Still people tend to be lazy and don't change their code if you don't
force them (or do it for them). Anyway, in nameidata we used dentry and mnt as
the field names. Therefore it isn't possible to use macros except of stuff
like ND2DENTRY(nd) kind of stuff which is even worse.
next prev parent reply other threads:[~2007-11-07 9:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 21:01 + embed-a-struct-path-into-struct-nameidata-instead-of-nd-dentrymnt.patch added to -mm tree akpm
2007-11-05 22:10 ` Jörn Engel
2007-11-06 9:11 ` + embed-a-struct-path-into-struct-nameidata-instead-of-nd-dentrymnt.pa tch " Jan Blunck
2007-11-06 11:30 ` Jörn Engel
2007-11-06 12:59 ` Jan Blunck
2007-11-06 13:27 ` Jörn Engel
2007-11-06 13:41 ` hooanon05
2007-11-07 9:04 ` Jan Blunck [this message]
2007-11-06 20:18 ` Andrew Morton
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=20071107090431.GS5619@hasse.suse.de \
--to=jblunck@suse.de \
--cc=agruen@suse.de \
--cc=akpm@linux-foundation.org \
--cc=hch@lst.de \
--cc=hooanon05@yahoo.co.jp \
--cc=joern@logfs.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).