btrfs: backref, add unode_aux_to_inode_list helper
authorJeff Mahoney <jeffm@suse.com>
Thu, 29 Jun 2017 03:56:56 +0000 (21:56 -0600)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 12:19:53 +0000 (14:19 +0200)
commit4dae077a83dd8944ed351b09a0651c1283f46185
tree4a960dabcb6cee3476ae4bfdaeb1d783454a6026
parent73980becaebfd4dd3c56f2ae64d4081af2a65b27
btrfs: backref, add unode_aux_to_inode_list helper

Replacing the double cast and ternary conditional with a helper makes
the code easier on the eyes.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c