diff options
author | Pavel Shilovsky <piastryyy@gmail.com> | 2010-12-14 08:29:51 (GMT) |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-01-20 21:42:25 (GMT) |
commit | 7a6a19b17ab9103ec708c18befd28f2a3908d4c1 (patch) | |
tree | 3b781bf11b2a25c93ce20dbd80876e7e01c730e6 /fs/cifs/cifsfs.c | |
parent | 8be7e6ba142423e6ad98fed293c96f196f685229 (diff) | |
download | linux-fsl-qoriq-7a6a19b17ab9103ec708c18befd28f2a3908d4c1.tar.xz |
CIFS: Implement cifs_file_strict_mmap (try #2)
Invalidate inode mapping if we don't have at least Level II oplock.
Reviewed-by: Jeff Layton <jlayton@redhat.com>
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index f6093e4..e24d966 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -743,7 +743,7 @@ const struct file_operations cifs_file_strict_ops = { .lock = cifs_lock, .fsync = cifs_strict_fsync, .flush = cifs_flush, - .mmap = cifs_file_mmap, + .mmap = cifs_file_strict_mmap, .splice_read = generic_file_splice_read, .llseek = cifs_llseek, #ifdef CONFIG_CIFS_POSIX @@ -798,7 +798,7 @@ const struct file_operations cifs_file_strict_nobrl_ops = { .release = cifs_close, .fsync = cifs_strict_fsync, .flush = cifs_flush, - .mmap = cifs_file_mmap, + .mmap = cifs_file_strict_mmap, .splice_read = generic_file_splice_read, .llseek = cifs_llseek, #ifdef CONFIG_CIFS_POSIX |