From: Suresh Jayaraman Date: Tue, 5 Aug 2008 09:08:40 +0000 (+0530) Subject: Fix missing braces in cifs_revalidate() X-Git-Tag: v2.6.27-rc3~65^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e96af8525264973d8d1f800b0ddce0289fc0bdd;p=linux-2.6 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 Signed-off-by: Suresh Jayaraman Signed-off-by: Steve French --- diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 46e54d3946..0e5dccc2f7 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -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 */