btrfs: send: use list_move_tail instead of list_del/list_add_tail
authorBaokun Li <libaokun1@huawei.com>
Fri, 11 Jun 2021 06:51:15 +0000 (14:51 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 22 Jun 2021 12:11:57 +0000 (14:11 +0200)
commitbb930007c006c5d7b8ecba41bb5bafd2dcd1fa79
tree704c19eee0db7c9eefcaa17a83a534aa678542f2
parentb05fbcc36be1f8597a1febef4892053a0b2f3f60
btrfs: send: use list_move_tail instead of list_del/list_add_tail

Use list_move_tail() instead of list_del() + list_add_tail() as it's
doing the same thing and allows further cleanups.  Open code
name_cache_used() as there is only one user.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c