summaryrefslogtreecommitdiff
path: root/fs/gfs2
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-11-22 16:28:47 (GMT)
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 15:36:36 (GMT)
commitae619320b22f8e0b2bbe4a3a5ac2f9ccf08d7ec2 (patch)
treef4ccd44ca867c71d36807c373b81219c025bf0da /fs/gfs2
parent28626e2078571c4b776a17eaa486bbd2b7dfe2cd (diff)
downloadlinux-ae619320b22f8e0b2bbe4a3a5ac2f9ccf08d7ec2.tar.xz
[GFS2] mark_inode_dirty after write to stuffed file
Writes to stuffed files were not being marked dirty correctly. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/ops_address.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index 8676c39..d8d69a7 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,
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))