aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/cifs/file.c4
-rw-r--r--fs/cifs/inode.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 1389f6ecef9e..ca2ba7a0193c 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -219,8 +219,8 @@ static inline int cifs_open_inode_helper(struct inode *inode, struct file *file,
219 cFYI(1, ("inode unchanged on server")); 219 cFYI(1, ("inode unchanged on server"));
220 } else { 220 } else {
221 if (file->f_path.dentry->d_inode->i_mapping) { 221 if (file->f_path.dentry->d_inode->i_mapping) {
222 /* BB no need to lock inode until after invalidate 222 /* BB no need to lock inode until after invalidate
223 since namei code should already have it locked? */ 223 since namei code should already have it locked? */
224 rc = filemap_write_and_wait(file->f_path.dentry->d_inode->i_mapping); 224 rc = filemap_write_and_wait(file->f_path.dentry->d_inode->i_mapping);
225 if (rc != 0) 225 if (rc != 0)
226 CIFS_I(file->f_path.dentry->d_inode)->write_behind_rc = rc; 226 CIFS_I(file->f_path.dentry->d_inode)->write_behind_rc = rc;
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 0d034a84bb8d..723daaccbd0e 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -510,9 +510,9 @@ int cifs_get_file_info(struct file *filp)
510 if (rc == -EOPNOTSUPP || rc == -EINVAL) { 510 if (rc == -EOPNOTSUPP || rc == -EINVAL) {
511 /* 511 /*
512 * FIXME: legacy server -- fall back to path-based call? 512 * FIXME: legacy server -- fall back to path-based call?
513 * for now, just skip revalidating and mark inode for 513 * for now, just skip revalidating and mark inode for
514 * immediate reval. 514 * immediate reval.
515 */ 515 */
516 rc = 0; 516 rc = 0;
517 CIFS_I(inode)->time = 0; 517 CIFS_I(inode)->time = 0;
518 goto cgfi_exit; 518 goto cgfi_exit;