Home
last modified time | relevance | path

Searched hist:"08 f088dd63abebb2cce5510cedd33a36bd0cf490" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dextent_map.cdiff 08f088dd63abebb2cce5510cedd33a36bd0cf490 Mon Sep 19 09:06:37 CDT 2022 Filipe Manana <fdmanana@suse.com> btrfs: remove unnecessary NULL pointer checks when searching extent maps

The previous and next pointer arguments passed to __tree_search() are
never NULL as the only caller of this function, __lookup_extent_mapping(),
always passes the address of two on stack pointers. So remove the NULL
checks and add assertions to verify the pointers.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>