diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-02-01 18:16:42 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-02-06 20:45:37 -0900 |
commit | 5933f9478cc21e8b319309d2794948050d09b031 (patch) | |
tree | 781509d106b4aa5c99dda7e88028b58baf6de786 /libbcache/alloc.c | |
parent | ab88049a08bf734b9a6c9f2deae39fbd0c933192 (diff) |
update bcache code, fsck improvements
Diffstat (limited to 'libbcache/alloc.c')
-rw-r--r-- | libbcache/alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcache/alloc.c b/libbcache/alloc.c index cff750c..4fe08b5 100644 --- a/libbcache/alloc.c +++ b/libbcache/alloc.c @@ -254,6 +254,9 @@ static int bch_prio_write(struct cache *ca) bool need_new_journal_entry; int i, ret; + if (c->opts.nochanges) + return 0; + trace_bcache_prio_write_start(ca); atomic64_add(ca->mi.bucket_size * prio_buckets(ca), |