bcache: Abstract out stuff needed for sorting

Signed-off-by: Kent Overstreet <[email protected]>
9 files changed