Lines Matching defs:writes
140 * metadata. If it once contained dirty data, other writes might overwrite it
155 * order metadata writes so that the btree and everything else is consistent on
164 * nodes in the btree, and those writes will be mostly empty (appending at most
165 * a few keys each) - highly inefficient in terms of amount of metadata writes,
751 /* Counts outstanding writes, for clean transition to read-only */
753 atomic_long_t writes[BCH_WRITE_REF_NR];
755 struct percpu_ref writes;
758 * Analagous to c->writes, for asynchronous ops that don't necessarily
1140 atomic_long_inc(&c->writes[ref]);
1142 percpu_ref_get(&c->writes);
1150 atomic_long_inc_not_zero(&c->writes[ref]);
1152 return percpu_ref_tryget(&c->writes);
1160 atomic_long_inc_not_zero(&c->writes[ref]);
1162 return percpu_ref_tryget_live(&c->writes);
1169 long v = atomic_long_dec_return(&c->writes[ref]);
1175 if (atomic_long_read(&c->writes[i]))
1181 percpu_ref_put(&c->writes);