Unionfs: avoid using drop_pagecache_sb in remount
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 12 Dec 2007 17:31:26 +0000 (12:31 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 24 Nov 2013 19:22:05 +0000 (14:22 -0500)
commit03e4cfc0a08c21c810b1baa6fcfc8f87f50ad9ad
tree1e0a6123240af862a19666e82e411662a867d0e1
parent2e75bc202161ad9863a4c78b5871dd866790b62c
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