]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: fail priority metadata ticket with real fs error
authorFilipe Manana <fdmanana@suse.com>
Wed, 26 Jul 2023 15:57:06 +0000 (16:57 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:18 +0000 (14:52 +0200)
commit7e3bfd146e3ed1e3125a1c5e53c12dee787b6b4b
treefbbbcb0562352a6d74723c29de1d5ebab5e0b8ec
parenta7f8de500e28bb227e02a7bd35988cf37b816c86
btrfs: fail priority metadata ticket with real fs error

At priority_reclaim_metadata_space(), if we were not able to satisfy the
the ticket after going through the various flushing states and we notice
the fs went into an error state, likely due to a transaction abort during
the flushing, set the ticket's error to the error that caused the
transaction abort instead of an unconditional -EROFS.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c