btrfs: Use list_empty instead of list_empty_careful
authorNikolay Borisov <nborisov@suse.com>
Thu, 19 Apr 2018 07:46:37 +0000 (10:46 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:19 +0000 (18:07 +0200)
commit81f1d39035dfc58b265b3ad68e2dcbb61b7d8263
treea2a9ed986efc5c6bb40db5ad8aa3fddfe30a6e76
parent2a3ff0adc92069122a75c3e37271d7ab7ce0dc1c
btrfs: Use list_empty instead of list_empty_careful

list_empty_careful usually is a signal of something tricky going on. Its
usage in btrfs is actually not needed since both lists it's used on are
local to a function and cannot be modified concurrently. So switch to
plain list_empty. No functional changes.

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/inode.c