Lines Matching refs:write_point
783 struct write_point *wp, in bucket_alloc_from_stripe()
835 struct write_point *wp, in want_bucket()
860 struct write_point *wp, in bucket_alloc_set_writepoint()
888 struct write_point *wp, in bucket_alloc_set_partial()
941 struct write_point *wp, in __open_bucket_add_buckets()
1009 struct write_point *wp, in open_bucket_add_buckets()
1089 bool ec, struct write_point *wp) in bch2_writepoint_stop()
1157 unsigned long write_point) in writepoint_hash() argument
1160 hash_long(write_point, ilog2(ARRAY_SIZE(c->write_points_hash))); in writepoint_hash()
1165 static struct write_point *__writepoint_find(struct hlist_head *head, in __writepoint_find()
1166 unsigned long write_point) in __writepoint_find() argument
1168 struct write_point *wp; in __writepoint_find()
1172 if (wp->write_point == write_point) in __writepoint_find()
1190 struct write_point *wp; in try_increase_writepoints()
1197 hlist_add_head_rcu(&wp->node, writepoint_hash(c, wp->write_point)); in try_increase_writepoints()
1204 struct write_point *wp; in try_decrease_writepoints()
1233 static struct write_point *writepoint_find(struct btree_trans *trans, in writepoint_find()
1234 unsigned long write_point) in writepoint_find() argument
1237 struct write_point *wp, *oldest; in writepoint_find()
1240 if (!(write_point & 1UL)) { in writepoint_find()
1241 wp = (struct write_point *) write_point; in writepoint_find()
1246 head = writepoint_hash(c, write_point); in writepoint_find()
1248 wp = __writepoint_find(head, write_point); in writepoint_find()
1252 if (wp->write_point == write_point) in writepoint_find()
1273 wp = __writepoint_find(head, write_point); in writepoint_find()
1282 wp->write_point = write_point; in writepoint_find()
1320 struct write_point_specifier write_point, in bch2_alloc_sectors_start_trans() argument
1327 struct write_point **wp_ret) in bch2_alloc_sectors_start_trans()
1330 struct write_point *wp; in bch2_alloc_sectors_start_trans()
1348 *wp_ret = wp = writepoint_find(trans, write_point.v); in bch2_alloc_sectors_start_trans()
1491 void bch2_alloc_sectors_append_ptrs(struct bch_fs *c, struct write_point *wp, in bch2_alloc_sectors_append_ptrs()
1502 void bch2_alloc_sectors_done(struct bch_fs *c, struct write_point *wp) in bch2_alloc_sectors_done()
1507 static inline void writepoint_init(struct write_point *wp, in writepoint_init()
1521 struct write_point *wp; in bch2_fs_allocator_foreground_init()
1547 wp->write_point = (unsigned long) wp; in bch2_fs_allocator_foreground_init()
1549 writepoint_hash(c, wp->write_point)); in bch2_fs_allocator_foreground_init()
1615 struct write_point *wp) in bch2_write_point_to_text()
1620 prt_printf(out, "%lu: ", wp->write_point); in bch2_write_point_to_text()
1641 struct write_point *wp; in bch2_write_points_to_text()