summaryrefslogtreecommitdiff
path: root/libbcache/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcache/alloc.c')
-rw-r--r--libbcache/alloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcache/alloc.c b/libbcache/alloc.c
index cff750c0..4fe08b57 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),