Re: [PATCH] ext4: group cache is added in ext4_mb_discard_preallocations()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tytso
Date: Tuesday, April 6, 2010 - 11:31 am

On Tue, Mar 30, 2010 at 08:36:17PM +0800, jing zhang wrote:

This is a problem right there.  Remember that there could be multiple
file systems mounted so a static variable is fundamentally flawed.

In fact, we could have a one filesystem which has more than 3 times
the number of groups as another file system.  I'll leave it as an
exercise to a reader why your patch would be fundamentally flawed in
that case.

The other thing to note is that this case only gets hit if the file
system is so full that we need to empty preallocations.  So this means
hitting this case is rare, which raises two questions: (1) is it worth
it to optimize this case in the first place (is it really that
expensive to iterate over all the groups to discard the
preallocations); (2) can we test this case well?

						- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] ext4: group cache is added in ext4_mb_discard_ ..., Aneesh Kumar K. V, (Tue Mar 30, 11:37 am)
Re: [PATCH] ext4: group cache is added in ext4_mb_discard_ ..., tytso, (Tue Apr 6, 11:31 am)