]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: use jbd2 jinode dirty range accessor
authorLi Chen <me@linux.beauty>
Fri, 6 Mar 2026 08:56:40 +0000 (16:56 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Apr 2026 14:51:05 +0000 (10:51 -0400)
commit660d23669982202c99798658e2a15ccdd001f82b
tree30ecab95d36bcd0d1460b7f29fa28bb67d458a55
parent5267f6ef49cb5fba426f2d286817b1355fde31da
ext4: use jbd2 jinode dirty range accessor

ext4 journal commit callbacks access jbd2_inode dirty range fields without
holding journal->j_list_lock.
Use jbd2_jinode_get_dirty_range() to get the range in bytes, and read
i_transaction with READ_ONCE() in the redirty check.

Suggested-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Li Chen <me@linux.beauty>
Link: https://patch.msgid.link/20260306085643.465275-3-me@linux.beauty
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c
fs/ext4/super.c