The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [CFT][PATCH] ramfs/tmpfs readdir()
Date: 05 Nov 2001 14:05:00 +0100	[thread overview]
Message-ID: <shspu6xz7ur.fsf@charged.uio.no> (raw)
In-Reply-To: <3BE58883.844058@colorfullife.com>
In-Reply-To: <3BE58883.844058@colorfullife.com>

>>>>> " " == Manfred Spraul <manfred@colorfullife.com> writes:

     > Content-Type: text/plain; charset=us-ascii
     > Content-Transfer-Encoding: 7bit

    >>
    >> Note that other filesystems would already enjoy having a
    >> d_offset in the dentry: it allows for various other
    >> optimizations (ie making "unlink()" a O(1) operation, by not
    >> having to search the directory).
    >>
     > The dentry structure already contains 2 members for filesystem
     > use (d_time and d_fsdata), is a third member really required?

It could be useful. For NFS, we're also looking for 64-bits in which
to store the parent directory's mtime. This is needed in order to
improve the dentry revalidation heuristics.

Ultimately, though, allowing the filesystem to allocate dentries
itself on its own slab might be a preferable manner to accomodate the
need for these private fields. IOW to allow one to allocate

   struct nfs_dentry { 
        struct dentry dentry;
        ... private fields ....
   };

Cheers,
  Trond

  reply	other threads:[~2001-11-05 13:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-04 18:27 [CFT][PATCH] ramfs/tmpfs readdir() Manfred Spraul
2001-11-05 13:05 ` Trond Myklebust [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-04 15:52 Alexander Viro
2001-11-04 17:55 ` Linus Torvalds
2001-11-04 18:20   ` Alexander 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=shspu6xz7ur.fsf@charged.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.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