diff options
author | 2024-10-04 15:19:01 +0200 | |
---|---|---|
committer | 2024-11-11 14:34:14 +0100 | |
commit | 61b4d75e3c5c10d523d95e19728dd5a6e2fd58f9 (patch) | |
tree | 7da7bec2afb06386c32371b15592a54e5b9c93c9 /fs/btrfs/tree-mod-log.h | |
parent | btrfs: simplify the page uptodate preparation for prepare_pages() (diff) | |
download | wireguard-linux-61b4d75e3c5c10d523d95e19728dd5a6e2fd58f9.tar.xz wireguard-linux-61b4d75e3c5c10d523d95e19728dd5a6e2fd58f9.zip |
btrfs: handle empty list of NOCOW ordered extents with checksum list
Currently we BUG_ON() in btrfs_finish_one_ordered() if we are finishing
an ordered extent that is flagged as NOCOW, but it's checksum list is
not empty.
This is clearly a logic error which we can recover from by aborting the
transaction.
For developer builds which enable CONFIG_BTRFS_ASSERT, also ASSERT()
that the list is empty.
Suggested-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-mod-log.h')
0 files changed, 0 insertions, 0 deletions