summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-06-22 02:15:04 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-22 03:46:18 +0200
commit0edd73b33426df61b1d8a0a50d1f2ec097500abb (patch)
treeedbc6d9b53ebd107befaf53fbefaaf1a55244273 /crypto
parent[PATCH] SN2 XPC build patches (diff)
downloadlinux-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 'crypto')
0 files changed, 0 insertions, 0 deletions