aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastryyy@gmail.com>2010-11-03 03:58:57 -0400
committerSteve French <sfrench@us.ibm.com>2010-11-05 13:39:01 -0400
commitc67236281c5d749741f5414103903a7c1b9c4636 (patch)
treeddc93fd5fcf47db18ce067309475a12a32b4c00c /fs/cifs/file.c
parentd38922949d377da7d47473c7868334408ae3b373 (diff)
cifs: make cifs_set_oplock_level() take a cifsInodeInfo pointer
All the callers already have a pointer to struct cifsInodeInfo. Use it. Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de> Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c8
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