aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuresh Jayaraman <sjayaraman@suse.de>2008-08-05 05:08:40 -0400
committerSteve French <sfrench@us.ibm.com>2008-08-05 12:51:53 -0400
commit9e96af8525264973d8d1f800b0ddce0289fc0bdd (patch)
tree4c48c85bcef749ed5aa27629276aeec0f377672e
parent93d0ec851820688ef5b21a84e7460d3cf405f5c5 (diff)
Fix missing braces in cifs_revalidate()
Fix missing braces introduced during commit cea218054ad277d6c126890213afde07b4eb1602. Though setting wbrc to 0 keeps this from causing real bug, this should have been there. Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de> Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r--fs/cifs/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 46e54d39461d..0e5dccc2f79a 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -1310,10 +1310,11 @@ int cifs_revalidate(struct dentry *direntry)
1310/* if (S_ISDIR(direntry->d_inode->i_mode)) 1310/* if (S_ISDIR(direntry->d_inode->i_mode))
1311 shrink_dcache_parent(direntry); */ 1311 shrink_dcache_parent(direntry); */
1312 if (S_ISREG(direntry->d_inode->i_mode)) { 1312 if (S_ISREG(direntry->d_inode->i_mode)) {
1313 if (direntry->d_inode->i_mapping) 1313 if (direntry->d_inode->i_mapping) {
1314 wbrc = filemap_fdatawait(direntry->d_inode->i_mapping); 1314 wbrc = filemap_fdatawait(direntry->d_inode->i_mapping);
1315 if (wbrc) 1315 if (wbrc)
1316 CIFS_I(direntry->d_inode)->write_behind_rc = wbrc; 1316 CIFS_I(direntry->d_inode)->write_behind_rc = wbrc;
1317 }
1317 /* may eventually have to do this for open files too */ 1318 /* may eventually have to do this for open files too */
1318 if (list_empty(&(cifsInode->openFileList))) { 1319 if (list_empty(&(cifsInode->openFileList))) {
1319 /* changed on server - flush read ahead pages */ 1320 /* changed on server - flush read ahead pages */