Lines Matching refs:iostat_ctx
216 static inline void __update_iostat_latency(struct bio_iostat_ctx *iostat_ctx, in __update_iostat_latency() argument
220 unsigned int iotype = iostat_ctx->type; in __update_iostat_latency()
221 struct f2fs_sb_info *sbi = iostat_ctx->sbi; in __update_iostat_latency()
229 ts_diff = jiffies - iostat_ctx->submit_ts; in __update_iostat_latency()
252 struct bio_iostat_ctx *iostat_ctx = bio->bi_private; in iostat_update_and_unbind_ctx() local
256 bio->bi_private = iostat_ctx->post_read_ctx; in iostat_update_and_unbind_ctx()
258 bio->bi_private = iostat_ctx->sbi; in iostat_update_and_unbind_ctx()
259 __update_iostat_latency(iostat_ctx, rw, is_sync); in iostat_update_and_unbind_ctx()
260 mempool_free(iostat_ctx, bio_iostat_ctx_pool); in iostat_update_and_unbind_ctx()
266 struct bio_iostat_ctx *iostat_ctx; in iostat_alloc_and_bind_ctx() local
268 iostat_ctx = mempool_alloc(bio_iostat_ctx_pool, GFP_NOFS); in iostat_alloc_and_bind_ctx()
269 iostat_ctx->sbi = sbi; in iostat_alloc_and_bind_ctx()
270 iostat_ctx->submit_ts = 0; in iostat_alloc_and_bind_ctx()
271 iostat_ctx->type = 0; in iostat_alloc_and_bind_ctx()
272 iostat_ctx->post_read_ctx = ctx; in iostat_alloc_and_bind_ctx()
273 bio->bi_private = iostat_ctx; in iostat_alloc_and_bind_ctx()