mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: viro@parcelfarce.linux.theplanet.co.uk
To: Maneesh Soni <maneesh@in.ibm.com>
Cc: Andrew Morton <akpm@osdl.org>, Greg KH <greg@kroah.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 5/5] Stop pinning dentries & inodes for leaves
Date: Tue, 3 Aug 2004 14:02:56 +0100	[thread overview]
Message-ID: <20040803130256.GW12308@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20040729204449.GG4592@in.ibm.com>

On Thu, Jul 29, 2004 at 03:44:49PM -0500, Maneesh Soni wrote:
> 
> 
> 
> o This patch stops the pinning of non-directory or leaf dentries and inodes. 
>   The leaf dentries and inodes are created during lookup based on the
>   entries on sysfs_dirent tree. These leaves are removed from the dcache
>   through the VFS dentry ageing process during shrink dcache operations. Thus
>   reducing about 80% of sysfs lowmem needs.
> 
> o This implments the ->lookup() for sysfs directory inodes and allocates
>   dentry and inode if the lookup is successful and avoids the need of 
>   allocating and pinning of dentry and inodes during the creation of 
>   corresponding sysfs leaf entry. As of now the implementation has not 
>   required negative dentry creation on failed lookup. As sysfs is still a
>   RAM based filesystem, negative dentries are not of any use IMO.
> 
> o The leaf dentry allocated after successful lookup is connected to the 
>   existing corresponding sysfs_dirent through the d_fsdata field. This 
>   increments the ref count of sysfs_dirent. The ref count is released through 
>   ->d_iput() dentry_operation when dentry dies.

ACK; there's some reordering that might make sense here, but that depends on
what will fall out of changes in previous chunks.

  reply	other threads:[~2004-08-03 13:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 20:37 [PATCH 0/5] sysfs backing store (Re-splitted) Maneesh Soni
2004-07-29 20:38 ` [PATCH 1/5] Add sysfs_dirent to sysfs dentry Maneesh Soni
2004-07-29 20:39   ` [PATCH 2/5] Use sysfs_dirent tree for ->readdir etc Maneesh Soni
2004-07-29 20:40     ` [PATCH 3/5] Free sysfs_dirent on file removal Maneesh Soni
2004-07-29 20:43       ` [PATCH 4/5] Change sysfs_file_operations Maneesh Soni
2004-07-29 20:44         ` [PATCH 5/5] Stop pinning dentries & inodes for leaves Maneesh Soni
2004-08-03 13:02           ` viro [this message]
2004-08-03 12:57         ` [PATCH 4/5] Change sysfs_file_operations viro
2004-08-03 12:52       ` [PATCH 3/5] Free sysfs_dirent on file removal viro
2004-08-03 12:47     ` [PATCH 2/5] Use sysfs_dirent tree for ->readdir etc viro
2004-08-03 12:43   ` [PATCH 1/5] Add sysfs_dirent to sysfs dentry viro

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=20040803130256.GW12308@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maneesh@in.ibm.com \
    /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

all inboxes | Powered by JetHome®