]> www.infradead.org Git - nvme.git/commit
btrfs: remove NULL transaction support for btrfs_lookup_extent_info()
authorFilipe Manana <fdmanana@suse.com>
Tue, 18 Jun 2024 07:28:30 +0000 (08:28 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:26 +0000 (15:33 +0200)
commit119474bdbac0858053cf367c8c932dd5c4bb4e85
treecefb575a4d37e38562658057dd7cb801d8ce276c
parentd12765dc0242c94105e64eb54c30155dce46d873
btrfs: remove NULL transaction support for btrfs_lookup_extent_info()

There are no callers of btrfs_lookup_extent_info() that pass a NULL value
for the transaction handle argument, so there's no point in having special
logic to deal with the NULL. The last caller that passed a NULL value was
removed in commit 19b546d7a1b2 ("btrfs: relocation:
Use btrfs_find_all_leafs to locate data extent parent tree leaves").

So remove the NULL handling from btrfs_lookup_extent_info().

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c