summaryrefslogtreecommitdiff
path: root/make-bcache.c
diff options
context:
space:
mode:
authorGabriel <g2p.code@gmail.com>2013-03-09 14:58:57 +0100
committerKent Overstreet <koverstreet@google.com>2013-04-15 12:48:39 -0700
commit94755cc7572a9a6c368d3518a370b49c8913727a (patch)
treeb8301f9054ab89c979b10196a9d8748c3ad205f2 /make-bcache.c
parent849ce473389cd827268c7d6781ba5082cbac162d (diff)
Update data offset format and warn about the previous one.
Also update the macro to select a bdev. Also reindent.
Diffstat (limited to 'make-bcache.c')
-rw-r--r--make-bcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/make-bcache.c b/make-bcache.c
index 1c5d3e6..fbf547f 100644
--- a/make-bcache.c
+++ b/make-bcache.c
@@ -185,7 +185,7 @@ static void write_sb(char *dev, unsigned block_size, unsigned bucket_size,
uuid_unparse(sb.uuid, uuid_str);
uuid_unparse(sb.set_uuid, set_uuid_str);
- if (SB_BDEV(&sb)) {
+ if (SB_IS_BDEV(&sb)) {
SET_BDEV_WRITEBACK(&sb, writeback);
if (data_offset != BDEV_DATA_START_DEFAULT) {