diff options
Diffstat (limited to 'fs/gfs2/ops_address.c')
-rw-r--r-- | fs/gfs2/ops_address.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index 8676c39d0d73..d8d69a72a10d 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c | |||
@@ -472,8 +472,10 @@ static int gfs2_commit_write(struct file *file, struct page *page, | |||
472 | 472 | ||
473 | SetPageUptodate(page); | 473 | SetPageUptodate(page); |
474 | 474 | ||
475 | if (inode->i_size < file_size) | 475 | if (inode->i_size < file_size) { |
476 | i_size_write(inode, file_size); | 476 | i_size_write(inode, file_size); |
477 | mark_inode_dirty(inode); | ||
478 | } | ||
477 | } else { | 479 | } else { |
478 | if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED || | 480 | if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED || |
479 | gfs2_is_jdata(ip)) | 481 | gfs2_is_jdata(ip)) |