Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98f1a696 authored by Andrew Price's avatar Andrew Price Committed by Steven Whitehouse
Browse files

GFS2: Update timestamps on fallocate



gfs2_fallocate() wasn't updating ctime and mtime when modifying the
inode. Add a call to file_update_time() to do that.

Signed-off-by: default avatarAndrew Price <anprice@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 1885867b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -874,7 +874,8 @@ static long __gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t

	if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) {
		i_size_write(inode, pos + count);
		mark_inode_dirty(inode);
		/* Marks the inode as dirty */
		file_update_time(file);
	}

	return generic_write_sync(file, pos, count);