]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit991b4da71d28fca38f352fe6dd1e908bfda38505
tree17940e2cdbdc55ae521a1cce4bae65517e94f798
parent0f1a079e7c77dbaec46f3cfc254c7f244a4900ef
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