Lines Matching refs:iostat_ctx
212 static inline void __update_iostat_latency(struct bio_iostat_ctx *iostat_ctx, in __update_iostat_latency() argument
216 unsigned int page_type = iostat_ctx->type; in __update_iostat_latency()
217 struct f2fs_sb_info *sbi = iostat_ctx->sbi; in __update_iostat_latency()
224 ts_diff = jiffies - iostat_ctx->submit_ts; in __update_iostat_latency()
242 struct bio_iostat_ctx *iostat_ctx = bio->bi_private; in iostat_update_and_unbind_ctx() local
248 bio->bi_private = iostat_ctx->sbi; in iostat_update_and_unbind_ctx()
251 bio->bi_private = iostat_ctx->post_read_ctx; in iostat_update_and_unbind_ctx()
254 __update_iostat_latency(iostat_ctx, lat_type); in iostat_update_and_unbind_ctx()
255 mempool_free(iostat_ctx, bio_iostat_ctx_pool); in iostat_update_and_unbind_ctx()
261 struct bio_iostat_ctx *iostat_ctx; in iostat_alloc_and_bind_ctx() local
263 iostat_ctx = mempool_alloc(bio_iostat_ctx_pool, GFP_NOFS); in iostat_alloc_and_bind_ctx()
264 iostat_ctx->sbi = sbi; in iostat_alloc_and_bind_ctx()
265 iostat_ctx->submit_ts = 0; in iostat_alloc_and_bind_ctx()
266 iostat_ctx->type = 0; in iostat_alloc_and_bind_ctx()
267 iostat_ctx->post_read_ctx = ctx; in iostat_alloc_and_bind_ctx()
268 bio->bi_private = iostat_ctx; in iostat_alloc_and_bind_ctx()