Unionfs: mmap fixes to ->writepage/readpage/sync_page
authorErez_Zadok <ezk@cs.sunysb.edu>
Sat, 21 Jul 2007 06:44:32 +0000 (02:44 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 30 Mar 2011 23:20:53 +0000 (19:20 -0400)
commit0e17a3fdb0b8e4b1a26d0a7d5da4f668f9e49b00
treeb2a9e78c0b17febc7c67480b264167e71479c238
parent582261e002fa92db67b637a22b3afaa5b373c6eb
Unionfs: mmap fixes to ->writepage/readpage/sync_page

unionfs_writepage: handle true errors differently from
AOP_WRITEPAGE_ACTIVATE conditions returned by lower file systems (such as
tmpfs).

unionfs_readpage: call flush_dcache_page as required.

unionfs_sync_page: don't call grab_cache_page to get the lower page, because
that function does too much and could lead to deadlocks.  Instead, call the
lighter-weight find_lock_page.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/mmap.c