bcache: Add bch_bkey_equal_header()
authorNicholas Swenson <nks@daterainc.com>
Tue, 12 Nov 2013 03:36:25 +0000 (19:36 -0800)
committerKent Overstreet <kmo@daterainc.com>
Wed, 8 Jan 2014 21:05:14 +0000 (13:05 -0800)
commit3bdad1e40d11aad31f2322f21e943c31ef20d9da
tree2b268d6b0944b97338d3b7a190443551b565e562
parent0f49cf3d83fbf038534c9302095b66b07b9838c3
bcache: Add bch_bkey_equal_header()

Checks if two keys have equivalent header fields.
(good enough for replacement or merging)

Used in bch_bkey_try_merge, and replacing a key
in the btree.

Signed-off-by: Nicholas Swenson <nks@daterainc.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/bset.c
drivers/md/bcache/bset.h
drivers/md/bcache/extents.c