diff options
author | Hugh Dickins <hugh@veritas.com> | 2005-06-22 02:15:04 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-22 03:46:18 +0200 |
commit | 0edd73b33426df61b1d8a0a50d1f2ec097500abb (patch) | |
tree | edbc6d9b53ebd107befaf53fbefaaf1a55244273 /fs/nfs | |
parent | [PATCH] SN2 XPC build patches (diff) | |
download | linux-0edd73b33426df61b1d8a0a50d1f2ec097500abb.tar.xz linux-0edd73b33426df61b1d8a0a50d1f2ec097500abb.zip |
[PATCH] shmem: restore superblock info
To improve shmem scalability, we allowed tmpfs instances which don't need
their blocks or inodes limited not to count them, and not to allocate any
sbinfo. Which was okay when the only use for the sbinfo was accounting
blocks and inodes; but since then a couple of unrelated projects extending
tmpfs want to store other data in the sbinfo. Whether either extension
reaches mainline is beside the point: I'm guilty of a bad design decision,
and should restore sbinfo to make any such future extensions easier.
So, once again allocate a shmem_sb_info for every shmem/tmpfs instance, and
now let max_blocks 0 indicate unlimited blocks, and max_inodes 0 unlimited
inodes. Brent Casavant verified (many months ago) that this does not
perceptibly impact the scalability (since the unlimited sbinfo cacheline is
repeatedly accessed but only once dirtied).
And merge shmem_set_size into its sole caller shmem_remount_fs.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions