diff options
author | Steve French <sfrench@us.ibm.com> | 2009-12-07 05:44:46 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-12-07 05:44:46 +0000 |
commit | a994b8fa669f16c50728328c3735722a3f20652e (patch) | |
tree | 08614052e8b9a7b48f178e198aad256369b9b69d /fs/cifs/cifsfs.c | |
parent | a2934c7b363ddcc001964f2444649f909e583bef (diff) |
[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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 29f1da761bb..8c6a0362717 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, |