diff options
| author | Filipe Manana <[email protected]> | 2023-07-21 09:49:20 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-07-24 16:06:27 +0000 |
| commit | bf7ecbe9875061bf3fce1883e3b26b77f847d1e8 (patch) | |
| tree | b87906379747e25ecde5e04177a20a3ff8bd9570 /fs/jbd2/commit.c | |
| parent | btrfs: remove BUG_ON()'s in add_new_free_space() (diff) | |
| download | kernel-bf7ecbe9875061bf3fce1883e3b26b77f847d1e8.tar.gz kernel-bf7ecbe9875061bf3fce1883e3b26b77f847d1e8.zip | |
btrfs: check if the transaction was aborted at btrfs_wait_for_commit()
At btrfs_wait_for_commit() we wait for a transaction to finish and then
always return 0 (success) without checking if it was aborted, in which
case the transaction didn't happen due to some critical error. Fix this
by checking if the transaction was aborted.
Fixes: 462045928bda ("Btrfs: add START_SYNC, WAIT_SYNC ioctls")
CC: [email protected] # 4.19+
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
