fuse: allow private mappings of "direct_io" files
commitfc280c9692031ee41545d6bea00bbb7c7dec97a9
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 2 Apr 2009 12:25:35 +0000 (2 14:25 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 2 Apr 2009 12:25:35 +0000 (2 14:25 +0200)
treebff08b2710b2086698736d66cef403c6e2975ca9
parentf4975c67dd9ad8eb47a4c77af0521a2b16ee0197
fuse: allow private mappings of "direct_io" files

Allow MAP_PRIVATE mmaps of "direct_io" files.  This is necessary for
execute support.

MAP_SHARED mappings require some sort of coherency between the
underlying file and the mapping.  With "direct_io" it is difficult to
provide this, so for the moment just disallow shared (read-write and
read-only) mappings altogether.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c