Commit 89bbc55
ext4: mark fc as ineligible using an handle in ext4_xattr_set()
commit 04e6ce8 upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent c5771f1 commit 89bbc55
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2554 | 2554 | | |
2555 | 2555 | | |
2556 | 2556 | | |
| 2557 | + | |
| 2558 | + | |
2557 | 2559 | | |
2558 | 2560 | | |
2559 | 2561 | | |
2560 | 2562 | | |
2561 | 2563 | | |
2562 | 2564 | | |
2563 | 2565 | | |
2564 | | - | |
2565 | 2566 | | |
2566 | 2567 | | |
2567 | 2568 | | |
| |||
0 commit comments