]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: unify SYNC mode checks in fallocate paths
authorZhang Yi <yi.zhang@huawei.com>
Fri, 27 Mar 2026 10:29:36 +0000 (18:29 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Apr 2026 01:57:52 +0000 (21:57 -0400)
commitc3688d212fc6306bbb7136fbc1d0be0f175a5270
tree5d2867bf7cc05aa2b617297fb32829a93a8e6c72
parent7d81ec0246ff74b10d92a4617fea84eaf06162c0
ext4: unify SYNC mode checks in fallocate paths

In the ext4 fallocate call chain, SYNC mode handling is inconsistent:
some places check the inode state, while others check the open file
descriptor state. Unify these checks by evaluating both conditions
to ensure consistent behavior across all fallocate operations.

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