diff options
author | Filipe Manana <fdmanana@suse.com> | 2025-07-25 16:51:49 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-08-22 00:58:25 +0200 |
commit | 2b3979624c3e34dcdd77d910c6490939727d91b2 (patch) | |
tree | 62c0073c85512aeedbf23457733a043c3b2e4820 /scripts/bpf_doc.py | |
parent | 74857fdc5dd2cdcdeb6e99bdf26976fd9299d2bb (diff) |
btrfs: abort transaction on failure to add link to inode
If we fail to update the inode or delete the orphan item, we must abort
the transaction to prevent persisting an inconsistent state. For example
if we fail to update the inode item, we have the inconsistency of having
a persisted inode item with a link count of N but we have N + 1 inode ref
items and N + 1 directory entries pointing to our inode in case the
transaction gets committed.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions