diff options
author | Dave Chinner <dchinner@redhat.com> | 2011-03-26 09:14:57 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2011-03-26 09:14:57 +1100 |
commit | 704b2907c2d47ceb187c0e25a6bbc2174b198f2f (patch) | |
tree | 0ca2703390a5ba43998eca28d85d77ee49a790f6 /lib/raid6/.gitignore | |
parent | 7401aafd5019d32a888e5f27332cf580945574bf (diff) | |
download | linux-3.10-704b2907c2d47ceb187c0e25a6bbc2174b198f2f.tar.gz linux-3.10-704b2907c2d47ceb187c0e25a6bbc2174b198f2f.tar.bz2 linux-3.10-704b2907c2d47ceb187c0e25a6bbc2174b198f2f.zip |
xfs: register the inode cache shrinker before quotachecks
During mount, we can do a quotacheck that involves a bulkstat pass
on all inodes. If there are more inodes in the filesystem than can
be held in memory, we require the inode cache shrinker to run to
ensure that we don't run out of memory.
Unfortunately, the inode cache shrinker is not registered until we
get to the end of the superblock setup process, which is after a
quotacheck is run if it is needed. Hence we need to register the
inode cache shrinker earlier in the mount process so that we don't
OOM during mount. This requires that we also initialise the syncd
work before we register the shrinker, so we nee dto juggle that
around as well.
While there, make sure that we have set up the block sizes in the
VFS superblock correctly before the quotacheck is run so that any
inodes that are cached as a result of the quotacheck have their
block size fields set up correctly.
Cc: stable@kernel.org
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'lib/raid6/.gitignore')
0 files changed, 0 insertions, 0 deletions