From: Christoph Hellwig <hch@infradead.org>
To: Stuart Brodsky <sbrodsky@sgi.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH] xfs:negative_icount.patch
Date: Sun, 18 Jul 2010 00:54:23 -0400 [thread overview]
Message-ID: <20100718045423.GA6282@infradead.org> (raw)
In-Reply-To: <1279306421.17689.38.camel@superior.americas.sgi.com>
On Fri, Jul 16, 2010 at 01:53:41PM -0500, Stuart Brodsky wrote:
> This patch fixes the stat -f icount field going negative.
In what tool? Do you means the Inodes: Total output in the stat(1) tool?
Please describe the problem in more detail in the commit log, and also
use a descriptive subject line.
> The use of
> lazy counts means that the super block field sb_icount is not updated
> correctly and will allow over allocation of inodes above maxicount.
The patch replaces the use of m_sb.sb_icount with your new atomic
variable in a few places in the inode allocator. If it really was the
stat tool mentioned above I would expect xfs_fs_statfs to also be
updated to use it. Either way I'm a bit confused about which users
are switched to the new variable and which not. This probably needs
a good comment in the code explaining where to use it and where not.
And the commit message needs a comment explaining how this negative
icount actually happened.
Note that introducing a filesystem-global atomic variable generally
isn't a good thing for scalability. This one is touched seldomly enough
that it might not a big problem, but depending on where you need to use
it summing up the per-cpu counters on demand might be a better option.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-07-18 4:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-16 18:53 [PATCH] xfs:negative_icount.patch Stuart Brodsky
2010-07-18 4:54 ` Christoph Hellwig [this message]
2010-07-19 0:14 ` Dave Chinner
[not found] ` <ECC25D18-BB9D-4EC7-A73C-139A688CE1C2@sgi.com>
2010-07-19 23:11 ` Dave Chinner
2010-07-20 12:56 ` Stuart Brodsky
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=20100718045423.GA6282@infradead.org \
--to=hch@infradead.org \
--cc=sbrodsky@sgi.com \
--cc=xfs@oss.sgi.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