]> git.neil.brown.name Git - history.git/commit
[PATCH] shmem: avoid metadata leakiness
authorHugh Dickins <hugh@veritas.com>
Thu, 3 Oct 2002 06:00:59 +0000 (23:00 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 3 Oct 2002 06:00:59 +0000 (23:00 -0700)
commit03844e4b25f5993847fea8f2936eee540167cd41
treead34dd97f81a610009eeb0b3c75b0253958a1f69
parent7aa8800b3677bf5b52d2404512a63b2ee1a1bf33
[PATCH] shmem: avoid metadata leakiness

akpm and wli each discovered unfortunate behaviour of dbench on tmpfs:
after tmpfs has reached its data memory limit, dbench continues to
lseek and write, and tmpfs carries on allocating unlimited metadata
blocks to accommodate the data it then refuses.  That particular
behaviour could be simply fixed by checking earlier; but I think tmpfs
metablocks should be subject to the memory limit, and included in df
and du accounting.  Also, manipulate inode->i_blocks under lock, was
missed before.
include/linux/shmem_fs.h
mm/shmem.c