master - bcache: Move the utils to a separate file.
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=efad84ebc297a652a2b88ced57128fc51edcf8ef Commit: efad84ebc297a652a2b88ced57128fc51edcf8ef Parent: b3c41bce3db2124af9296722bd5cda720c943462 Author: Joe Thornber <[email protected]> AuthorDate: Thu May 3 09:34:41 2018 +0100 Committer: Joe Thornber <[email protected]> CommitterDate: Thu May 3 09:34:41 2018 +0100
bcache: Move the utils to a separate file.
This makes it clearer that they don't access the cache internals.
--- lib/Makefile.in | 1 + lib/device/bcache-utils.c | 162 +++++++++++++++++++++++++++++++++++++++++++++ lib/device/bcache.c | 145 ---------------------------------------- 3 files changed, 163 insertions(+), 145 deletions(-)
lib/Makefile.in +1 -0
@@ -29,6 +29,7 @@ SOURCES =\ datastruct/btree.c \ datastruct/str_list.c \ device/bcache.c \ + device/bcache-utils.c \ device/dev-cache.c \ device/dev-ext.c \ device/dev-io.c \
lib/device/bcache-utils.c new file +162 -0
162 lines not on this page · raw message
lib/device/bcache.c +0 -145
150 lines not on this page · raw message