public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dipankar Sarma <dipankar@in.ibm.com>
To: Greg KH <greg@kroah.com>
Cc: Maneesh Soni <maneesh@in.ibm.com>,
	Al Viro <viro@parcelfarce.linux.theplanet.co.uk>,
	Patrick Mochel <mochel@osdl.org>,
	Christian Borntraeger <CBORNTRA@de.ibm.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC 0/5] Backing Store for sysfs (Overhauled)
Date: Wed, 12 Nov 2003 21:57:40 +0530	[thread overview]
Message-ID: <20031112162740.GA1776@in.ibm.com> (raw)
In-Reply-To: <20031112160015.GA28684@kroah.com>

On Wed, Nov 12, 2003 at 08:00:15AM -0800, Greg KH wrote:
> On Wed, Nov 12, 2003 at 05:53:44PM +0530, Maneesh Soni wrote:
> > 
> > The concept is still the same that in this prototype also we create dentry and 
> > inode on the fly when they are first looked up. This is done for both leaf or 
> > non-leaf dentries. The generic nature of sysfs_dirent makes it easy to do for 
> > both leaf or non-leaf dentries. 
> 
> What happens once a dentry and inode is created?  Is there any way for
> them to be forced out, or do they stay around in memory forever?

The idea atleast, is that if no one is using a dentry, it will
be put in the dentry lru list and eventually returned to the slab.
inodes too are returned alongwith. Just like how on-disk filesystems work.

Typically, an open() of a sysfs file would result in creation of the
corresponding dentry/inode and holding of the reference. close() releases
the reference. The last one to release puts the dentry in the lru list
for later pruning. The result is that we have less memory use and
smaller number of dcache hash table elements under normal circumstances.

THanks
Dipankar

  reply	other threads:[~2003-11-12 16:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-12 12:23 [RFC 0/5] Backing Store for sysfs (Overhauled) Maneesh Soni
2003-11-12 12:25 ` [RFC 1/5] sysfs-backing-store.patch Maneesh Soni
2003-11-12 12:25   ` [RFC 2/5] sysfs-dir.patch Maneesh Soni
2003-11-12 12:25     ` [RFC 3/5] sysfs-file.patch Maneesh Soni
2003-11-12 12:26       ` [RFC 4/5] sysfs-attr_group.patch Maneesh Soni
2003-11-12 12:26         ` [RFC 5/5] sysfs-symlink.patch Maneesh Soni
2003-11-12 14:39     ` [RFC 2/5] sysfs-dir.patch viro
2003-11-12 16:00 ` [RFC 0/5] Backing Store for sysfs (Overhauled) Greg KH
2003-11-12 16:27   ` Dipankar Sarma [this message]
2003-11-12 16:39     ` Greg KH
2003-11-13 19:34 ` Patrick Mochel
2003-11-13 19:55   ` Dipankar Sarma

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=20031112162740.GA1776@in.ibm.com \
    --to=dipankar@in.ibm.com \
    --cc=CBORNTRA@de.ibm.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maneesh@in.ibm.com \
    --cc=mochel@osdl.org \
    --cc=viro@parcelfarce.linux.theplanet.co.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