diff options
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r-- | fs/gfs2/bmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 42e477f31223..7878c473ae62 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -1216,6 +1216,8 @@ int gfs2_setattr_size(struct inode *inode, u64 newsize) | |||
1216 | if (ret) | 1216 | if (ret) |
1217 | return ret; | 1217 | return ret; |
1218 | 1218 | ||
1219 | inode_dio_wait(inode); | ||
1220 | |||
1219 | oldsize = inode->i_size; | 1221 | oldsize = inode->i_size; |
1220 | if (newsize >= oldsize) | 1222 | if (newsize >= oldsize) |
1221 | return do_grow(inode, newsize); | 1223 | return do_grow(inode, newsize); |