]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Make btrfs_find_name_in_ext_backref return struct btrfs_inode_extref
authorNikolay Borisov <nborisov@suse.com>
Tue, 27 Aug 2019 11:46:29 +0000 (14:46 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:16 +0000 (14:59 +0200)
commitc0e8d38a25969303f13ccf5e48f757f372f9d06c
tree579ce68df238df9d3cad0fd8decd98bcc6a7580e
parentae9b5a4a5b93ee8d5bb47270a8495f4f896f7c67
btrfs: Make btrfs_find_name_in_ext_backref return struct btrfs_inode_extref

btrfs_find_name_in_ext_backref returns either 0/1 depending on whether it
found a backref for the given name. If it returns true then the actual
inode_ref struct is returned in one of its parameters. That's pointless,
instead refactor the function such that it returns either a pointer
to the btrfs_inode_extref or NULL it it didn't find anything. This
streamlines the function calling convention.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/inode-item.c
fs/btrfs/tree-log.c