diff options
| author | Filipe Manana <[email protected]> | 2022-09-19 14:06:37 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-09-29 15:08:31 +0000 |
| commit | 08f088dd63abebb2cce5510cedd33a36bd0cf490 (patch) | |
| tree | 97fec1656c30a2e6a1a0520f7a1b16216c552f1b /fs/jbd2/commit.c | |
| parent | btrfs: assert tree is locked when clearing extent map from logging (diff) | |
| download | kernel-08f088dd63abebb2cce5510cedd33a36bd0cf490.tar.gz kernel-08f088dd63abebb2cce5510cedd33a36bd0cf490.zip | |
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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
