btrfs: add a comp_refs() helper
authorJosef Bacik <josef@toxicpanda.com>
Thu, 19 Oct 2017 18:15:59 +0000 (14:15 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 1 Nov 2017 19:45:35 +0000 (20:45 +0100)
commit1d148e5939f55c76d06108548c7c0226e55dde8e
tree17940e2cdbdc55ae521a1cce4bae65517e94f798
parentc7ad7c843965d8691269f581e132633a4ca9ef91
btrfs: add a comp_refs() helper

Instead of open-coding the delayed ref comparisons, add a helper to do
the comparisons generically and use that everywhere.  We compare
sequence numbers last for following patches.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c