aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r--fs/gfs2/bmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index e65493a8ac00..2cd0e56b8893 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -1224,6 +1224,8 @@ int gfs2_setattr_size(struct inode *inode, u64 newsize)
1224 if (ret) 1224 if (ret)
1225 return ret; 1225 return ret;
1226 1226
1227 inode_dio_wait(inode);
1228
1227 oldsize = inode->i_size; 1229 oldsize = inode->i_size;
1228 if (newsize >= oldsize) 1230 if (newsize >= oldsize)
1229 return do_grow(inode, newsize); 1231 return do_grow(inode, newsize);