]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Open-code name_in_log_ref in replay_one_name
authorNikolay Borisov <nborisov@suse.com>
Fri, 30 Aug 2019 14:44:49 +0000 (17:44 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:51 +0000 (12:46 +0100)
commitf7e17f13339039862f21db08b7a4e8152e03ab11
tree9a9d21bd4fa86149885b6b439f51d2040b6461af
parent898dfefa9ec6c841feb8d315ee6b49e0e3418258
btrfs: Open-code name_in_log_ref in replay_one_name

That function adds unnecessary indirection between backref_in_log and
the caller. Furthermore it also "downgrades" backref_in_log's return
value to a boolean, when in fact it could very well be an error.

Rectify the situation by simply opencoding name_in_log_ref in
replay_one_name and properly handling possible return codes from
backref_in_log.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c