diff options
author | 2024-09-23 11:49:09 +0100 | |
---|---|---|
committer | 2024-10-04 17:36:09 -0400 | |
commit | 04e6ce8f06d161399e5afde3df5dcfa9455b4952 (patch) | |
tree | 2405796fda222ce24bec452f8a8dc5941b508803 /drivers/usb/cdns3/cdns3-debug.h | |
parent | ext4: use handle to mark fc as ineligible in __track_dentry_update() (diff) | |
download | wireguard-linux-04e6ce8f06d161399e5afde3df5dcfa9455b4952.tar.xz wireguard-linux-04e6ce8f06d161399e5afde3df5dcfa9455b4952.zip |
ext4: mark fc as ineligible using an handle in ext4_xattr_set()
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 moves the call to this function so that an handle
can be used. If a transaction fails to start, then there's not point in
trying to mark the filesystem as ineligible, and an error will eventually be
returned to user-space.
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-3-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions