aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 14938ee4f6e4..dbca2b293e55 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -312,13 +312,13 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file)
312 if (list_empty(&cifsi->openFileList)) { 312 if (list_empty(&cifsi->openFileList)) {
313 cFYI(1, "closing last open instance for inode %p", 313 cFYI(1, "closing last open instance for inode %p",
314 cifs_file->dentry->d_inode); 314 cifs_file->dentry->d_inode);
315 315 /*
316 /* in strict cache mode we need invalidate mapping on the last 316 * In strict cache mode we need invalidate mapping on the last
317 close because it may cause a error when we open this file 317 * close because it may cause a error when we open this file
318 again and get at least level II oplock */ 318 * again and get at least level II oplock.
319 */
319 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) 320 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO)
320 CIFS_I(inode)->invalid_mapping = true; 321 CIFS_I(inode)->invalid_mapping = true;
321
322 cifs_set_oplock_level(cifsi, 0); 322 cifs_set_oplock_level(cifsi, 0);
323 } 323 }
324 spin_unlock(&cifs_file_list_lock); 324 spin_unlock(&cifs_file_list_lock);