Lines Matching defs:writes
246 * - foreground writes depend on copygc and rebalance (to free up space)
306 static void bch2_writes_disabled(struct percpu_ref *writes)
308 struct bch_fs *c = container_of(writes, struct bch_fs, writes);
328 * writes will return -EROFS:
332 percpu_ref_kill(&c->writes);
340 * outstanding writes to complete so they don't see spurious errors due
343 * If we are doing an emergency shutdown outstanding writes may
345 * on outstanding writes before shutting everything down - but
355 bch_verbose(c, "finished waiting for writes to stop");
363 bch_verbose(c, "finished waiting for writes to stop");
480 percpu_ref_reinit(&c->writes);
483 BUG_ON(atomic_long_read(&c->writes[i]));
484 atomic_long_inc(&c->writes[i]);
584 percpu_ref_exit(&c->writes);
898 percpu_ref_init(&c->writes, bch2_writes_disabled,
1693 * further journal writes elide usage info for the device.