summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2009-12-07 05:44:46 +0000
committerSteve French <sfrench@us.ibm.com>2009-12-07 05:44:46 +0000
commita994b8fa669f16c50728328c3735722a3f20652e (patch)
tree08614052e8b9a7b48f178e198aad256369b9b69d /fs/cifs/cifsfs.c
parenta2934c7b363ddcc001964f2444649f909e583bef (diff)
downloadtalos-op-linux-a994b8fa669f16c50728328c3735722a3f20652e.tar.gz
talos-op-linux-a994b8fa669f16c50728328c3735722a3f20652e.zip
[CIFS] Enable mmap on forcedirectio mounts
openoffice and gedit failed with 'direct' options Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 29f1da761bbf..8c6a03627176 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -758,7 +758,7 @@ const struct file_operations cifs_file_ops = {
};
const struct file_operations cifs_file_direct_ops = {
- /* no mmap, no aio, no readv -
+ /* no aio, no readv -
BB reevaluate whether they can be done with directio, no cache */
.read = cifs_user_read,
.write = cifs_user_write,
@@ -767,6 +767,7 @@ const struct file_operations cifs_file_direct_ops = {
.lock = cifs_lock,
.fsync = cifs_fsync,
.flush = cifs_flush,
+ .mmap = cifs_file_mmap,
.splice_read = generic_file_splice_read,
#ifdef CONFIG_CIFS_POSIX
.unlocked_ioctl = cifs_ioctl,
OpenPOWER on IntegriCloud