summaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorPavel Shilovsky2012-09-19 01:20:27 +0200
committerSteve French2012-09-25 04:46:27 +0200
commit253641388a49259f6bfefecfb14fa057ca58dc21 (patch)
treee38c2f0561e5fd547a1c5d0633c4b65dc6f371a0 /fs/cifs/file.c
parentCIFS: Add SMB2 support for query_file_info (diff)
downloadkernel-qcow2-linux-253641388a49259f6bfefecfb14fa057ca58dc21.tar.gz
kernel-qcow2-linux-253641388a49259f6bfefecfb14fa057ca58dc21.tar.xz
kernel-qcow2-linux-253641388a49259f6bfefecfb14fa057ca58dc21.zip
CIFS: Move create code use ops struct
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
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)
if (list_empty(&cifsi->openFileList)) {
cFYI(1, "closing last open instance for inode %p",
cifs_file->dentry->d_inode);
-
- /* in strict cache mode we need invalidate mapping on the last
- close because it may cause a error when we open this file
- again and get at least level II oplock */
+ /*
+ * In strict cache mode we need invalidate mapping on the last
+ * close because it may cause a error when we open this file
+ * again and get at least level II oplock.
+ */
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO)
CIFS_I(inode)->invalid_mapping = true;
-
cifs_set_oplock_level(cifsi, 0);
}
spin_unlock(&cifs_file_list_lock);