summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2011-07-26 12:24:00 -0700
committerKent Overstreet <koverstreet@google.com>2011-07-26 12:24:00 -0700
commit552595bc6eef40e464a82a2eeddc3711078abafc (patch)
treee69f330be3b8834ae599ec25406c198e826b7a19
parenta02bc8df010a4f9255506ef9840d6efabe46db9d (diff)
Don't write journal buckets
-rw-r--r--.gitignore1
-rw-r--r--bcache.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index d03d148..c1743e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
make-bcache
probe-bcache
.*
+*.o
diff --git a/bcache.h b/bcache.h
index e3c10ca..d91b3e1 100644
--- a/bcache.h
+++ b/bcache.h
@@ -38,7 +38,7 @@ struct cache_sb {
uint16_t first_bucket;
uint16_t keys; /* number of journal buckets */
- uint64_t d[512]; /* journal buckets */
+ uint64_t d[]; /* journal buckets */
};
inline uint64_t crc64(const void *_data, size_t len);