diff options
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 777e7f42b5b1..06c3e83fa387 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -146,7 +146,7 @@ client_can_cache: | |||
146 | rc = cifs_get_inode_info(&inode, full_path, buf, inode->i_sb, | 146 | rc = cifs_get_inode_info(&inode, full_path, buf, inode->i_sb, |
147 | xid, NULL); | 147 | xid, NULL); |
148 | 148 | ||
149 | cifs_set_oplock_level(inode, oplock); | 149 | cifs_set_oplock_level(pCifsInode, oplock); |
150 | 150 | ||
151 | return rc; | 151 | return rc; |
152 | } | 152 | } |
@@ -248,7 +248,7 @@ cifs_new_fileinfo(__u16 fileHandle, struct file *file, | |||
248 | list_add_tail(&pCifsFile->flist, &pCifsInode->openFileList); | 248 | list_add_tail(&pCifsFile->flist, &pCifsInode->openFileList); |
249 | spin_unlock(&cifs_file_list_lock); | 249 | spin_unlock(&cifs_file_list_lock); |
250 | 250 | ||
251 | cifs_set_oplock_level(inode, oplock); | 251 | cifs_set_oplock_level(pCifsInode, oplock); |
252 | 252 | ||
253 | file->private_data = pCifsFile; | 253 | file->private_data = pCifsFile; |
254 | return pCifsFile; | 254 | return pCifsFile; |
@@ -279,7 +279,7 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file) | |||
279 | if (list_empty(&cifsi->openFileList)) { | 279 | if (list_empty(&cifsi->openFileList)) { |
280 | cFYI(1, "closing last open instance for inode %p", | 280 | cFYI(1, "closing last open instance for inode %p", |
281 | cifs_file->dentry->d_inode); | 281 | cifs_file->dentry->d_inode); |
282 | cifs_set_oplock_level(inode, 0); | 282 | cifs_set_oplock_level(cifsi, 0); |
283 | } | 283 | } |
284 | spin_unlock(&cifs_file_list_lock); | 284 | spin_unlock(&cifs_file_list_lock); |
285 | 285 | ||
@@ -611,7 +611,7 @@ reopen_success: | |||
611 | we can not go to the server to get the new inod | 611 | we can not go to the server to get the new inod |
612 | info */ | 612 | info */ |
613 | 613 | ||
614 | cifs_set_oplock_level(inode, oplock); | 614 | cifs_set_oplock_level(pCifsInode, oplock); |
615 | 615 | ||
616 | cifs_relock_file(pCifsFile); | 616 | cifs_relock_file(pCifsFile); |
617 | 617 | ||