Skip to content

Commit 4db7384

Browse files
josefbacikkdave
authored andcommitted
btrfs: don't drop a reference if btrfs_check_write_meta_pointer() fails
In the zoned mode there's a bug in the extent buffer tree conversion to xarray. The reference for eb is dropped and code continues but the references get dropped by releasing the batch. Reported-by: Johannes Thumshirn <[email protected]> Fixes: 19d7f65 ("btrfs: convert the buffer_radix to an xarray") Reviewed-by: Johannes Thumshirn <[email protected]> Tested-by: Johannes Thumshirn <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent eeb133a commit 4db7384

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/btrfs/extent_io.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,6 @@ int btree_write_cache_pages(struct address_space *mapping,
21892189
done = 1;
21902190
break;
21912191
}
2192-
free_extent_buffer(eb);
21932192
continue;
21942193
}
21952194

0 commit comments

Comments
 (0)