diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 46e54d39461da2182dd2eaf5d2c8aea05f9f4ed3..0e5dccc2f79a2f0e15a3bedef69342913a0ca2aa 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 */