Lines Matching refs:write_point
842 struct write_point *wp, in bucket_alloc_from_stripe()
900 struct write_point *wp, in want_bucket()
925 struct write_point *wp, in bucket_alloc_set_writepoint()
953 struct write_point *wp, in bucket_alloc_set_partial()
1006 struct write_point *wp, in __open_bucket_add_buckets()
1074 struct write_point *wp, in open_bucket_add_buckets()
1154 bool ec, struct write_point *wp) in bch2_writepoint_stop()
1222 unsigned long write_point) in writepoint_hash() argument
1225 hash_long(write_point, ilog2(ARRAY_SIZE(c->write_points_hash))); in writepoint_hash()
1230 static struct write_point *__writepoint_find(struct hlist_head *head, in __writepoint_find()
1231 unsigned long write_point) in __writepoint_find() argument
1233 struct write_point *wp; in __writepoint_find()
1237 if (wp->write_point == write_point) in __writepoint_find()
1255 struct write_point *wp; in try_increase_writepoints()
1262 hlist_add_head_rcu(&wp->node, writepoint_hash(c, wp->write_point)); in try_increase_writepoints()
1269 struct write_point *wp; in try_decrease_writepoints()
1298 static struct write_point *writepoint_find(struct btree_trans *trans, in writepoint_find()
1299 unsigned long write_point) in writepoint_find() argument
1302 struct write_point *wp, *oldest; in writepoint_find()
1305 if (!(write_point & 1UL)) { in writepoint_find()
1306 wp = (struct write_point *) write_point; in writepoint_find()
1311 head = writepoint_hash(c, write_point); in writepoint_find()
1313 wp = __writepoint_find(head, write_point); in writepoint_find()
1317 if (wp->write_point == write_point) in writepoint_find()
1338 wp = __writepoint_find(head, write_point); in writepoint_find()
1347 wp->write_point = write_point; in writepoint_find()
1385 struct write_point_specifier write_point, in bch2_alloc_sectors_start_trans() argument
1392 struct write_point **wp_ret) in bch2_alloc_sectors_start_trans()
1395 struct write_point *wp; in bch2_alloc_sectors_start_trans()
1413 *wp_ret = wp = writepoint_find(trans, write_point.v); in bch2_alloc_sectors_start_trans()
1534 void bch2_alloc_sectors_append_ptrs(struct bch_fs *c, struct write_point *wp, in bch2_alloc_sectors_append_ptrs()
1545 void bch2_alloc_sectors_done(struct bch_fs *c, struct write_point *wp) in bch2_alloc_sectors_done()
1550 static inline void writepoint_init(struct write_point *wp, in writepoint_init()
1564 struct write_point *wp; in bch2_fs_allocator_foreground_init()
1590 wp->write_point = (unsigned long) wp; in bch2_fs_allocator_foreground_init()
1592 writepoint_hash(c, wp->write_point)); in bch2_fs_allocator_foreground_init()
1658 struct write_point *wp) in bch2_write_point_to_text()
1663 prt_printf(out, "%lu: ", wp->write_point); in bch2_write_point_to_text()
1684 struct write_point *wp; in bch2_write_points_to_text()