bugfix: handle lower file systems that do not support writeable mappings
authorErez_Zadok <ezk@cs.sunysb.edu>
Thu, 24 May 2007 01:26:01 +0000 (21:26 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 12 Jan 2009 23:20:28 +0000 (18:20 -0500)
commitfae8e9ff060250c47dab333414d63e813f61e54c
treef5c6c4dbbdfd35b2ce07115ab407e597d9be45ec
parent7f80d73880635121703b668ba9b7d3dbe020afc7
bugfix: handle lower file systems that do not support writeable mappings

File systems such as jffs2 (tested in 2.6.22-rc22) do not have a
->writepage.  Make sure unionfs detects that conditions and returns EINVAL
when a user tries to mmap such a file with VM_WRITE.

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