Home
last modified time | relevance | path

Searched refs:bip (Results 1 – 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/fs/xfs/
Dxfs_buf_item.c70 struct xfs_buf_log_item *bip, in xfs_buf_item_size_segment() argument
75 struct xfs_buf *bp = bip->bli_buf; in xfs_buf_item_size_segment()
144 struct xfs_buf_log_item *bip = BUF_ITEM(lip); in xfs_buf_item_size() local
147 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_size()
148 if (bip->bli_flags & XFS_BLI_STALE) { in xfs_buf_item_size()
154 trace_xfs_buf_item_size_stale(bip); in xfs_buf_item_size()
155 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_size()
156 *nvecs += bip->bli_format_count; in xfs_buf_item_size()
157 for (i = 0; i < bip->bli_format_count; i++) { in xfs_buf_item_size()
158 *nbytes += xfs_buf_log_format_size(&bip->bli_formats[i]); in xfs_buf_item_size()
[all …]
Dxfs_trans_buf.c66 struct xfs_buf_log_item *bip; in _xfs_trans_bjoin() local
76 bip = bp->b_log_item; in _xfs_trans_bjoin()
77 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in _xfs_trans_bjoin()
78 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in _xfs_trans_bjoin()
79 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in _xfs_trans_bjoin()
81 bip->bli_recur = 0; in _xfs_trans_bjoin()
86 atomic_inc(&bip->bli_refcount); in _xfs_trans_bjoin()
92 xfs_trans_add_item(tp, &bip->bli_item); in _xfs_trans_bjoin()
125 struct xfs_buf_log_item *bip; in xfs_trans_get_buf_map() local
147 bip = bp->b_log_item; in xfs_trans_get_buf_map()
[all …]
Dxfs_buf_item_recover.c420 struct xfs_buf_log_item *bip; in xlog_recover_validate_buf_type() local
424 bip = bp->b_log_item; in xlog_recover_validate_buf_type()
425 bip->bli_item.li_lsn = current_lsn; in xlog_recover_validate_buf_type()
Dxfs_trace.h433 TP_PROTO(struct xfs_buf_log_item *bip),
434 TP_ARGS(bip),
449 __entry->dev = bip->bli_buf->b_target->bt_dev;
450 __entry->bli_flags = bip->bli_flags;
451 __entry->bli_recur = bip->bli_recur;
452 __entry->bli_refcount = atomic_read(&bip->bli_refcount);
453 __entry->buf_bno = bip->bli_buf->b_bn;
454 __entry->buf_len = BBTOB(bip->bli_buf->b_length);
455 __entry->buf_flags = bip->bli_buf->b_flags;
456 __entry->buf_hold = atomic_read(&bip->bli_buf->b_hold);
[all …]
/kernel/linux/linux-5.10/block/
Dbio-integrity.c28 struct bio_integrity_payload *bip) in __bio_integrity_free() argument
31 if (bip->bip_vec) in __bio_integrity_free()
32 bvec_free(&bs->bvec_integrity_pool, bip->bip_vec, in __bio_integrity_free()
33 bip->bip_slab); in __bio_integrity_free()
34 mempool_free(bip, &bs->bio_integrity_pool); in __bio_integrity_free()
36 kfree(bip); in __bio_integrity_free()
54 struct bio_integrity_payload *bip; in bio_integrity_alloc() local
62 bip = kmalloc(struct_size(bip, bip_inline_vecs, nr_vecs), gfp_mask); in bio_integrity_alloc()
65 bip = mempool_alloc(&bs->bio_integrity_pool, gfp_mask); in bio_integrity_alloc()
69 if (unlikely(!bip)) in bio_integrity_alloc()
[all …]
Dt10-pi.c140 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_prepare() local
141 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_prepare()
146 if (bip->bip_flags & BIP_MAPPED_INTEGRITY) in t10_pi_type1_prepare()
149 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_prepare()
168 bip->bip_flags |= BIP_MAPPED_INTEGRITY; in t10_pi_type1_prepare()
192 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_complete() local
193 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_complete()
197 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_complete()
Dblk.h120 struct bio_integrity_payload *bip = bio_integrity(req->bio); in integrity_req_gap_back_merge() local
123 return bvec_gap_to_prev(req->q, &bip->bip_vec[bip->bip_vcnt - 1], in integrity_req_gap_back_merge()
130 struct bio_integrity_payload *bip = bio_integrity(bio); in integrity_req_gap_front_merge() local
133 return bvec_gap_to_prev(req->q, &bip->bip_vec[bip->bip_vcnt - 1], in integrity_req_gap_front_merge()
/kernel/linux/linux-5.10/drivers/nvdimm/
Dblk.c64 struct bio_integrity_payload *bip, u64 lba, int rw) in nd_blk_rw_integrity() argument
84 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in nd_blk_rw_integrity()
101 if (!bvec_iter_advance(bip->bip_vec, &bip->bip_iter, cur_len)) in nd_blk_rw_integrity()
110 struct bio_integrity_payload *bip, u64 lba, int rw) in nd_blk_rw_integrity() argument
117 struct bio_integrity_payload *bip, struct page *page, in nsblk_do_bvec() argument
138 cur_len = bip ? min(len, sector_size) : len; in nsblk_do_bvec()
152 if (bip) { in nsblk_do_bvec()
153 err = nd_blk_rw_integrity(nsblk, bip, lba, rw); in nsblk_do_bvec()
167 struct bio_integrity_payload *bip; in nd_blk_submit_bio() local
178 bip = bio_integrity(bio); in nd_blk_submit_bio()
[all …]
Dbtt.c1141 static int btt_rw_integrity(struct btt *btt, struct bio_integrity_payload *bip, in btt_rw_integrity() argument
1148 if (bip == NULL) in btt_rw_integrity()
1158 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in btt_rw_integrity()
1182 if (!bvec_iter_advance(bip->bip_vec, &bip->bip_iter, cur_len)) in btt_rw_integrity()
1190 static int btt_rw_integrity(struct btt *btt, struct bio_integrity_payload *bip, in btt_rw_integrity() argument
1197 static int btt_read_pg(struct btt *btt, struct bio_integrity_payload *bip, in btt_read_pg() argument
1272 if (bip) { in btt_read_pg()
1273 ret = btt_rw_integrity(btt, bip, arena, postmap, READ); in btt_read_pg()
1310 static int btt_write_pg(struct btt *btt, struct bio_integrity_payload *bip, in btt_write_pg() argument
1369 if (bip) { in btt_write_pg()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbio.h339 struct bio_integrity_payload *bip = bio_integrity(bio); in bio_integrity_flagged() local
341 if (bip) in bio_integrity_flagged()
342 return bip->bip_flags & flag; in bio_integrity_flagged()
347 static inline sector_t bip_get_seed(struct bio_integrity_payload *bip) in bip_get_seed() argument
349 return bip->bip_iter.bi_sector; in bip_get_seed()
352 static inline void bip_set_seed(struct bio_integrity_payload *bip, in bip_set_seed() argument
355 bip->bip_iter.bi_sector = seed; in bip_set_seed()
718 #define bip_for_each_vec(bvl, bip, iter) \ argument
719 for_each_bvec(bvl, (bip)->bip_vec, iter, (bip)->bip_iter)
/kernel/linux/linux-5.10/drivers/nvme/target/
Dio-cmd-bdev.c176 struct bio_integrity_payload *bip; in nvmet_bdev_alloc_bip() local
187 bip = bio_integrity_alloc(bio, GFP_NOIO, in nvmet_bdev_alloc_bip()
189 if (IS_ERR(bip)) { in nvmet_bdev_alloc_bip()
191 return PTR_ERR(bip); in nvmet_bdev_alloc_bip()
194 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in nvmet_bdev_alloc_bip()
196 bip_set_seed(bip, bio->bi_iter.bi_sector >> in nvmet_bdev_alloc_bip()
199 resid = bip->bip_iter.bi_size; in nvmet_bdev_alloc_bip()
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_iblock.c629 struct bio_integrity_payload *bip; in iblock_alloc_bip() local
640 bip = bio_integrity_alloc(bio, GFP_NOIO, in iblock_alloc_bip()
642 if (IS_ERR(bip)) { in iblock_alloc_bip()
644 return PTR_ERR(bip); in iblock_alloc_bip()
647 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in iblock_alloc_bip()
649 bip_set_seed(bip, bio->bi_iter.bi_sector >> in iblock_alloc_bip()
652 pr_debug("IBLOCK BIP Size: %u Sector: %llu\n", bip->bip_iter.bi_size, in iblock_alloc_bip()
653 (unsigned long long)bip->bip_iter.bi_sector); in iblock_alloc_bip()
655 resid = bip->bip_iter.bi_size; in iblock_alloc_bip()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_symlink_remote.c136 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_symlink_write_verify() local
149 if (bip) { in xfs_symlink_write_verify()
151 dsl->sl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_symlink_write_verify()
Dxfs_dir2_data.c361 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_data_write_verify() local
374 if (bip) in xfs_dir3_data_write_verify()
375 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify()
Dxfs_dir2_block.c89 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_block_write_verify() local
102 if (bip) in xfs_dir3_block_write_verify()
103 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_block_write_verify()
Dxfs_sb.c782 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_sb_write_verify() local
801 if (bip) in xfs_sb_write_verify()
802 dsb->sb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_sb_write_verify()
Dxfs_alloc.c658 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agfl_write_verify() local
671 if (bip) in xfs_agfl_write_verify()
672 XFS_BUF_TO_AGFL(bp)->agfl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agfl_write_verify()
2921 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agf_write_verify() local
2934 if (bip) in xfs_agf_write_verify()
2935 agf->agf_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agf_write_verify()
Dxfs_dir2_leaf.c223 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_leaf_write_verify() local
236 if (bip) in xfs_dir3_leaf_write_verify()
237 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_leaf_write_verify()
Dxfs_btree.c273 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_btree_lblock_calc_crc() local
277 if (bip) in xfs_btree_lblock_calc_crc()
278 block->bb_u.l.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_lblock_calc_crc()
311 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_btree_sblock_calc_crc() local
315 if (bip) in xfs_btree_sblock_calc_crc()
316 block->bb_u.s.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_sblock_calc_crc()
Dxfs_dir2_node.c146 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_free_write_verify() local
159 if (bip) in xfs_dir3_free_write_verify()
160 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_free_write_verify()
/kernel/linux/linux-5.10/Documentation/block/
Ddata-integrity.rst138 pointer to a struct bip which contains the bio integrity payload.
139 Essentially a bip is a trimmed down struct bio which holds a bio_vec
145 bip to the bio.
150 bio_free() will automatically free the bip.
223 `struct bip * bio_integrity_alloc(bio, gfp_mask, nr_pages);`
235 bio. The bio must have an existing bip,
242 integrity metadata must have a value of bip->bip_sector.
245 there is room in the bip bio_vec array (nr_pages).
/kernel/linux/linux-5.10/drivers/md/
Ddm-integrity.c1703 struct bio_integrity_payload *bip = dio->bio_details.bi_integrity; in integrity_metadata() local
1705 if (bip) { in integrity_metadata()
1712 bip_for_each_vec(biv, bip, iter) { in integrity_metadata()
1741 struct bio_integrity_payload *bip; in dm_integrity_map() local
1801 bip = bio_integrity(bio); in dm_integrity_map()
1803 if (bip) { in dm_integrity_map()
1809 if (unlikely(wanted_tag_size != bip->bip_iter.bi_size)) { in dm_integrity_map()
1811 bip->bip_iter.bi_size, wanted_tag_size); in dm_integrity_map()
1816 if (unlikely(bip != NULL)) { in dm_integrity_map()
1895 struct bio_integrity_payload *bip = bio_integrity(bio); in __journal_read_write() local
[all …]
Draid5.c3410 struct bio **bip; in add_stripe_bio() local
3424 bip = &sh->dev[dd_idx].towrite; in add_stripe_bio()
3425 if (*bip == NULL) in add_stripe_bio()
3428 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
3429 while (*bip && (*bip)->bi_iter.bi_sector < bi->bi_iter.bi_sector) { in add_stripe_bio()
3430 if (bio_end_sector(*bip) > bi->bi_iter.bi_sector) in add_stripe_bio()
3432 bip = & (*bip)->bi_next; in add_stripe_bio()
3434 if (*bip && (*bip)->bi_iter.bi_sector < bio_end_sector(bi)) in add_stripe_bio()
3470 BUG_ON(*bip && bi->bi_next && (*bip) != bi->bi_next); in add_stripe_bio()
3471 if (*bip) in add_stripe_bio()
[all …]
Ddm-crypt.c1136 struct bio_integrity_payload *bip; in dm_crypt_integrity_io_alloc() local
1143 bip = bio_integrity_alloc(bio, GFP_NOIO, 1); in dm_crypt_integrity_io_alloc()
1144 if (IS_ERR(bip)) in dm_crypt_integrity_io_alloc()
1145 return PTR_ERR(bip); in dm_crypt_integrity_io_alloc()
1149 bip->bip_iter.bi_size = tag_len; in dm_crypt_integrity_io_alloc()
1150 bip->bip_iter.bi_sector = io->cc->start + io->sector; in dm_crypt_integrity_io_alloc()
/kernel/linux/linux-5.10/Documentation/filesystems/
Dxfs-self-describing-metadata.rst304 struct xfs_buf_log_item *bip = bp->b_fspriv;
316 if (bip) {
318 hdr->lsn = cpu_to_be64(bip->bli_item.li_lsn);

12