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, 13 Jan 2009 01:43:07 +0000 (20:43 -0500)
commit6bb576a19bdfb142ee16b3c71cafa6cfc4e23cdd
tree4b5440afe8b3f3730fc1f51a3a87aba9ef5e0129
parent76e97824bca8139cea4ebfe1b59883fee309ba74
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