bcache: Refactor bset_tree sysfs stats
authorKent Overstreet <kmo@daterainc.com>
Tue, 12 Nov 2013 03:25:55 +0000 (19:25 -0800)
committerKent Overstreet <kmo@daterainc.com>
Wed, 8 Jan 2014 21:05:13 +0000 (13:05 -0800)
commitf67342dd342d5917d94a7c0ffbde5f78e0d7a57a
tree64472797ad91ae8e9b9e100863b98a69c34bd9a2
parent59158fde429fb5d18064e2734b3dd5e6048affbd
bcache: Refactor bset_tree sysfs stats

We're in the process of turning bset.c into library code, so none of the code in
that file should know about struct cache_set or struct btree - so, move the
btree traversal part of the stats code to sysfs.c.

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