]> git.baikalelectronics.ru Git - kernel.git/commit
tmpfs: simplify unuse and writepage
authorHugh Dickins <hughd@google.com>
Tue, 26 Jul 2011 00:12:37 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:11 +0000 (20:57 -0700)
commita3d885b14ca46a36b760e32ff10c1f7113fdb7ed
treed4dcb91583b7b831a20deed6979be713ad2892b7
parenteffaeb1bff7bcb56d05ca511b4d93ad3b6fbcc8a
tmpfs: simplify unuse and writepage

shmem_unuse_inode() and shmem_writepage() contain a little code to cope
with pages inserted independently into the filecache, probably by a
filesystem stacked on top of tmpfs, then fed to its ->readpage() or
->writepage().

Unionfs was indeed experimenting with working in that way three years ago,
but I find no current examples: nowadays the stacking filesystems use vfs
interfaces to the lower filesystem.

It's now illegal: remove most of that code, adding some WARN_ON_ONCEs.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Erez Zadok <ezk@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shmem.c