diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:27 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:27 -0400 |
commit | 253641388a49259f6bfefecfb14fa057ca58dc21 (patch) | |
tree | e38c2f0561e5fd547a1c5d0633c4b65dc6f371a0 /fs/cifs/file.c | |
parent | b7546bc54c4acf1a79c83030fa0591cd24875125 (diff) |
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.c | 10 |
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); |