linux-sg2042/fs/freevxfs
Johannes Weiner 91b0abe36a mm + fs: store shadow entries in page cache
Reclaim will be leaving shadow entries in the page cache radix tree upon
evicting the real page.  As those pages are found from the LRU, an
iput() can lead to the inode being freed concurrently.  At this point,
reclaim must no longer install shadow pages because the inode freeing
code needs to ensure the page tree is really empty.

Add an address_space flag, AS_EXITING, that the inode freeing code sets
under the tree lock before doing the final truncate.  Reclaim will check
for this flag before installing shadow pages.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Bob Liu <bob.liu@oracle.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jan Kara <jack@suse.cz>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Luigi Semenzato <semenzato@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Metin Doslu <metin@citusdata.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: Ozgun Erdogan <ozgun@citusdata.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Roman Gushchin <klamm@yandex-team.ru>
Cc: Ryan Mallon <rmallon@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-03 16:21:01 -07:00
..
Kconfig fs/Kconfig: move vxfs out 2009-01-22 13:15:58 +03:00
Makefile
vxfs.h
vxfs_bmap.c freevxfs: possible null pointer dereference fix 2007-05-08 11:14:59 -07:00
vxfs_dir.h fs/: Spelling fixes 2008-02-03 17:33:42 +02:00
vxfs_extern.h convert remaining ->clear_inode() to ->evict_inode() 2010-08-09 16:48:37 -04:00
vxfs_fshead.c Fix common misspellings 2011-03-31 11:26:23 -03:00
vxfs_fshead.h
vxfs_immed.c fs/freevxfs/: proper externs 2008-04-29 08:06:00 -07:00
vxfs_inode.c mm + fs: store shadow entries in page cache 2014-04-03 16:21:01 -07:00
vxfs_inode.h
vxfs_lookup.c fs/freevxfs/vxfs_lookup.c: update function comment 2014-04-03 16:20:50 -07:00
vxfs_olt.c
vxfs_olt.h Fix common misspellings 2011-03-31 11:26:23 -03:00
vxfs_subr.c block: remove per-queue plugging 2011-03-10 08:52:07 +01:00
vxfs_super.c fs: Readd the fs module aliases. 2013-03-12 18:55:21 -07:00