]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: remove ctime/mtime update from ext4_alloc_file_blocks()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 27 Mar 2026 10:29:37 +0000 (18:29 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Apr 2026 01:57:52 +0000 (21:57 -0400)
commit116c0bdac2ec059d91045ba3f57cc90cb1e3b71d
tree0765b2bf64d07821b9a14b631ad6a1deb7b6028a
parentc3688d212fc6306bbb7136fbc1d0be0f175a5270
ext4: remove ctime/mtime update from ext4_alloc_file_blocks()

The ctime and mtime update is already handled by file_modified() in
ext4_fallocate(), the caller of ext4_alloc_file_blocks(). So remove the
redundant calls to inode_set_ctime_current() and inode_set_mtime_to_ts()
in ext4_alloc_file_blocks().

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260327102939.1095257-12-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c