diff options
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 411c1f7f84da..9558f51bca55 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -1148,8 +1148,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs) | |||
1148 | /* BB check if we need to refresh inode from server now ? BB */ | 1148 | /* BB check if we need to refresh inode from server now ? BB */ |
1149 | 1149 | ||
1150 | /* need to flush data before changing file size on server */ | 1150 | /* need to flush data before changing file size on server */ |
1151 | filemap_fdatawrite(direntry->d_inode->i_mapping); | 1151 | filemap_write_and_wait(direntry->d_inode->i_mapping); |
1152 | filemap_fdatawait(direntry->d_inode->i_mapping); | ||
1153 | 1152 | ||
1154 | if (attrs->ia_valid & ATTR_SIZE) { | 1153 | if (attrs->ia_valid & ATTR_SIZE) { |
1155 | /* To avoid spurious oplock breaks from server, in the case of | 1154 | /* To avoid spurious oplock breaks from server, in the case of |