]> git.dujemihanovic.xyz Git - linux.git/commit
ext4: use handle to mark fc as ineligible in __track_dentry_update()
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>
Mon, 23 Sep 2024 10:49:08 +0000 (11:49 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 4 Oct 2024 21:35:54 +0000 (17:35 -0400)
commitfaab35a0370fd6e0821c7a8dd213492946fc776f
tree4370fa435192e1739c801f483644df4b7d6d1361
parent9852d85ec9d492ebef56dc5f229416c925758edc
ext4: use handle to mark fc as ineligible in __track_dentry_update()

Calling ext4_fc_mark_ineligible() with a NULL handle is racy and may result
in a fast-commit being done before the filesystem is effectively marked as
ineligible.  This patch fixes the calls to this function in
__track_dentry_update() by adding an extra parameter to the callback used in
ext4_fc_track_template().

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20240923104909.18342-2-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/fast_commit.c