Commit 04e6ce8
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 <[email protected]>
Signed-off-by: Luis Henriques (SUSE) <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected]1 parent faab35a commit 04e6ce8
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2559 | 2559 | | |
2560 | 2560 | | |
2561 | 2561 | | |
| 2562 | + | |
| 2563 | + | |
2562 | 2564 | | |
2563 | 2565 | | |
2564 | 2566 | | |
2565 | 2567 | | |
2566 | 2568 | | |
2567 | 2569 | | |
2568 | 2570 | | |
2569 | | - | |
2570 | 2571 | | |
2571 | 2572 | | |
2572 | 2573 | | |
| |||
0 commit comments