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, 3 Jul 2007 22:57:59 +0000 (18:57 -0400)
commit25025705d5f75f1e088fbd77e47ebfcfa8811b6f
tree7a1cfe4a5959bfd74982141596361795212c0d2c
parent39b2c0fd6755047bf84d3160383e0954dc462837
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