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>
Tue, 11 Nov 2014 00:43:57 +0000 (19:43 -0500)
commit36150b63649801a3bc1574c6a1c3910a87ac0b13
tree595975ef56d94a9d7b412257d90fddd654f91900
parent7aecee19a178e21d393364ba4959f1a9955f5f35
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