mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
[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>
This commit is contained in:
parent
28626e2078
commit
ae619320b2
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue