]> err.no Git - linux-2.6/commitdiff
Fix missing braces in cifs_revalidate()
authorSuresh Jayaraman <sjayaraman@suse.de>
Tue, 5 Aug 2008 09:08:40 +0000 (14:38 +0530)
committerSteve French <sfrench@us.ibm.com>
Tue, 5 Aug 2008 16:51:53 +0000 (16:51 +0000)
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>
fs/cifs/inode.c

index 46e54d39461da2182dd2eaf5d2c8aea05f9f4ed3..0e5dccc2f79a2f0e15a3bedef69342913a0ca2aa 100644 (file)
@@ -1310,10 +1310,11 @@ int cifs_revalidate(struct dentry *direntry)
 /*             if (S_ISDIR(direntry->d_inode->i_mode))
                        shrink_dcache_parent(direntry); */
                if (S_ISREG(direntry->d_inode->i_mode)) {
-                       if (direntry->d_inode->i_mapping)
+                       if (direntry->d_inode->i_mapping) {
                                wbrc = filemap_fdatawait(direntry->d_inode->i_mapping);
                                if (wbrc)
                                        CIFS_I(direntry->d_inode)->write_behind_rc = wbrc;
+                       }
                        /* may eventually have to do this for open files too */
                        if (list_empty(&(cifsInode->openFileList))) {
                                /* changed on server - flush read ahead pages */