Unionfs: avoid using drop_pagecache_sb in remount
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 25 Dec 2007 21:55:55 +0000 (16:55 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 03:49:08 +0000 (23:49 -0400)
commit637a33e913afff4aeb18546a6606c3de3f2daa56
treebcbad25086f1828a54773a9a21bf7c61722a1026
parent7c1a9a80ca88856c382abb967a9c974d8497ed01
Unionfs: avoid using drop_pagecache_sb in remount

Exporting drop_pagecache_sb to modules is somewhat risky because one cannot
sleep inside invalidate_mapping_pages.  This could cause a lot of latency in
the pre-emption code.  So don't export this symbol to minimize the risk that
others will use it.

Instead, unionfs will try to directly invalidate as many pages it can from
the unionfs_remount code.  Invalidating those inode pages is not strictly
required, but helpful in encouraging a revalidation of inodes sooner than
waiting for individual f/s ops to access the union.  Since a remount is
already an expensive but rare operation, this inode pages invalidation
shouldn't add too much overhead.

CC: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/drop_caches.c
fs/unionfs/dentry.c
fs/unionfs/super.c
fs/unionfs/union.h
include/linux/mm.h