Lines Matching full:wp
91 static inline void bch2_alloc_sectors_done_inlined(struct bch_fs *c, struct write_point *wp) in bch2_alloc_sectors_done_inlined() argument
97 open_bucket_for_each(c, &wp->ptrs, ob, i) in bch2_alloc_sectors_done_inlined()
99 wp->ptrs = keep; in bch2_alloc_sectors_done_inlined()
101 mutex_unlock(&wp->lock); in bch2_alloc_sectors_done_inlined()
107 struct write_point *wp, in bch2_open_bucket_get() argument
113 open_bucket_for_each(c, &wp->ptrs, ob, i) { in bch2_open_bucket_get()
114 ob->data_type = wp->data_type; in bch2_open_bucket_get()
182 bch2_alloc_sectors_append_ptrs_inlined(struct bch_fs *c, struct write_point *wp, in bch2_alloc_sectors_append_ptrs_inlined() argument
189 BUG_ON(sectors > wp->sectors_free); in bch2_alloc_sectors_append_ptrs_inlined()
190 wp->sectors_free -= sectors; in bch2_alloc_sectors_append_ptrs_inlined()
191 wp->sectors_allocated += sectors; in bch2_alloc_sectors_append_ptrs_inlined()
193 open_bucket_for_each(c, &wp->ptrs, ob, i) { in bch2_alloc_sectors_append_ptrs_inlined()
199 wp->data_type == BCH_DATA_user); in bch2_alloc_sectors_append_ptrs_inlined()
219 static inline struct write_point_specifier writepoint_ptr(struct write_point *wp) in writepoint_ptr() argument
221 return (struct write_point_specifier) { .v = (unsigned long) wp }; in writepoint_ptr()