]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] mark_inode_dirty after write to stuffed file
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 22 Nov 2006 16:28:47 +0000 (11:28 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:36:36 +0000 (10:36 -0500)
Writes to stuffed files were not being marked dirty correctly.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_address.c

index 8676c39d0d73de7bd13ddbd5d76c587379e9bbf7..d8d69a72a10dd819bfcdbe6a736009bda5a92e27 100644 (file)
@@ -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))