Skip to content

Commit

Permalink
[GFS2] mark_inode_dirty after write to stuffed file
Browse files Browse the repository at this point in the history
Writes to stuffed files were not being marked dirty correctly.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Nov 30, 2006
1 parent 28626e2 commit ae61932
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/gfs2/ops_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,10 @@ static int gfs2_commit_write(struct file *file, struct page *page,

SetPageUptodate(page);

if (inode->i_size < file_size)
if (inode->i_size < file_size) {
i_size_write(inode, file_size);
mark_inode_dirty(inode);
}
} else {
if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED ||
gfs2_is_jdata(ip))
Expand Down

0 comments on commit ae61932

Please sign in to comment.