linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nick Piggin <npiggin@suse.de>, Miklos Szeredi <miklos@szeredi.hu>,
	Christoph Hellwig <hch@lst.de>,
	drepper@redhat.com, viro@zeniv.linux.org.uk,
	linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 2/2] add f_flags to struct statfs(64)
Date: Sun, 18 Jul 2010 08:41:16 +0200	[thread overview]
Message-ID: <20100718064116.GA13124@lst.de> (raw)
In-Reply-To: <AANLkTimI4ANjeF05RV7Vr-m0pQONWza-5oWDHHqTUrAK@mail.gmail.com>

On Wed, Jul 07, 2010 at 12:30:50PM -0700, Linus Torvalds wrote:
> On Wed, Jul 7, 2010 at 11:50 AM, Nick Piggin <npiggin@suse.de> wrote:
> >
> > Well we do want to be simple I think, but it's not *totally* just
> > for dbench performance :) Actually dbench is supposed to be an fs
> > syscall reply of samba running a file server workload. For one
> > reason or another, it calls statvfs a lot.
> 
> It seems to call statvfs() mainly because it wants the disk free block
> information, afaik. I can't find anything that cares about f_flag.

People calls statvfs instead of statfs because it's the version that
got standardized in Posix.

And with the glibc emulation of the flags damage is done now, and given
how easy it is to fix (see my patches) there is no reason not to fill
out the flags.  We just need to figure out how.  I see three theoretical
variants:

 (1) add new system calls
 (2) drop the ST_VALID flag and only look at the flags field for
     2.6.36+ kernels.
 (3) keep the ST_VALID flag in my patches and only look at the flags
     field in glibc for 2.6 kernels

(1) is pretty ugly, and Linus already vetoed it, (2) is okayish, but
prevents distros from backporting this easy speedup in a useful way,
so I'd prefer variant (3).  If Uli is okay with that we should put
my second version of the patches into the vfs tree and pull them
for 2.6.36.  If version (2) is preferred I can update the patches
again.

  reply	other threads:[~2010-07-18  6:42 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-07 16:53 [PATCH 2/2] add f_flags to struct statfs(64) Christoph Hellwig
2010-07-07 17:11 ` Ulrich Drepper
2010-07-07 17:31   ` Linus Torvalds
2010-07-07 17:33     ` Christoph Hellwig
2010-07-07 17:55       ` Miklos Szeredi
2010-07-07 18:06         ` Linus Torvalds
2010-07-07 18:50           ` Nick Piggin
2010-07-07 19:30             ` Linus Torvalds
2010-07-18  6:41               ` Christoph Hellwig [this message]
2010-07-18 17:03                 ` Linus Torvalds
2010-07-07 18:16       ` Nick Piggin
  -- strict thread matches above, loose matches on Subject: below --
2010-06-26  9:35 Christoph Hellwig
2010-06-26  9:56 ` Nick Piggin
2010-06-26 13:09   ` Christoph Hellwig
2010-06-26 13:16     ` Nick Piggin
2010-06-26 12:55 ` Neil Brown
2010-06-26 13:12   ` Christoph Hellwig
2010-06-27  7:55 ` Tao Ma
2010-06-27  9:20   ` Christoph Hellwig
2010-06-28 18:43 ` Andreas Dilger
2010-06-28 19:52   ` Ulrich Drepper
2010-06-28 20:07     ` Andreas Dilger
2010-06-29  8:57     ` Nick Piggin
2010-06-29  9:25       ` Christoph Hellwig
2010-06-29  9:59       ` Ulrich Drepper
2010-06-29 11:05         ` Nick Piggin
2010-06-29 12:57         ` Christoph Hellwig

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=20100718064116.GA13124@lst.de \
    --to=hch@lst.de \
    --cc=drepper@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=npiggin@suse.de \
    --cc=torvalds@linux-foundation.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).