]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: introduce ext4_check_map_extents_env() debug helper
authorZhang Yi <yi.zhang@huawei.com>
Wed, 23 Apr 2025 08:52:55 +0000 (16:52 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 14 May 2025 14:42:13 +0000 (10:42 -0400)
commit7871da20d484d5c7e536bfd52845b6be4488ff30
tree3a519a1b9c5744f33e942452c5aca23acab2c2ee
parent0b8e0bd45007d5740391e658c2581bd614207387
ext4: introduce ext4_check_map_extents_env() debug helper

Loading and modifying the extents tree and extent status tree without
holding the inode's i_rwsem or the mapping's invalidate_lock is not
permitted, except during the I/O writeback. Add a new debug helper
ext4_check_map_extents_env(), it will verify whether the extent
loading/modifying context is safe.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250423085257.122685-8-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/inode.c