Home
last modified time | relevance | path

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

12

/Linux-v5.4/fs/xfs/
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()
124 struct xfs_buf_log_item *bip; in xfs_trans_get_buf_map() local
144 bip = bp->b_log_item; in xfs_trans_get_buf_map()
[all …]
Dxfs_buf_item.c50 struct xfs_buf_log_item *bip, in xfs_buf_item_size_segment() argument
55 struct xfs_buf *bp = bip->bli_buf; in xfs_buf_item_size_segment()
124 struct xfs_buf_log_item *bip = BUF_ITEM(lip); in xfs_buf_item_size() local
127 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_size()
128 if (bip->bli_flags & XFS_BLI_STALE) { in xfs_buf_item_size()
134 trace_xfs_buf_item_size_stale(bip); in xfs_buf_item_size()
135 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_size()
136 *nvecs += bip->bli_format_count; in xfs_buf_item_size()
137 for (i = 0; i < bip->bli_format_count; i++) { in xfs_buf_item_size()
138 *nbytes += xfs_buf_log_format_size(&bip->bli_formats[i]); in xfs_buf_item_size()
[all …]
Dxfs_trace.h426 TP_PROTO(struct xfs_buf_log_item *bip),
427 TP_ARGS(bip),
442 __entry->dev = bip->bli_buf->b_target->bt_dev;
443 __entry->bli_flags = bip->bli_flags;
444 __entry->bli_recur = bip->bli_recur;
445 __entry->bli_refcount = atomic_read(&bip->bli_refcount);
446 __entry->buf_bno = bip->bli_buf->b_bn;
447 __entry->buf_len = BBTOB(bip->bli_buf->b_length);
448 __entry->buf_flags = bip->bli_buf->b_flags;
449 __entry->buf_hold = atomic_read(&bip->bli_buf->b_hold);
[all …]
/Linux-v5.4/block/
Dbio-integrity.c41 struct bio_integrity_payload *bip; in bio_integrity_alloc() local
46 bip = kmalloc(struct_size(bip, bip_inline_vecs, nr_vecs), gfp_mask); in bio_integrity_alloc()
49 bip = mempool_alloc(&bs->bio_integrity_pool, gfp_mask); in bio_integrity_alloc()
53 if (unlikely(!bip)) in bio_integrity_alloc()
56 memset(bip, 0, sizeof(*bip)); in bio_integrity_alloc()
61 bip->bip_vec = bvec_alloc(gfp_mask, nr_vecs, &idx, in bio_integrity_alloc()
63 if (!bip->bip_vec) in bio_integrity_alloc()
65 bip->bip_max_vcnt = bvec_nr_vecs(idx); in bio_integrity_alloc()
66 bip->bip_slab = idx; in bio_integrity_alloc()
68 bip->bip_vec = bip->bip_inline_vecs; in bio_integrity_alloc()
[all …]
Dt10-pi.c139 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_prepare() local
140 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_prepare()
145 if (bip->bip_flags & BIP_MAPPED_INTEGRITY) in t10_pi_type1_prepare()
148 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_prepare()
167 bip->bip_flags |= BIP_MAPPED_INTEGRITY; in t10_pi_type1_prepare()
191 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_complete() local
192 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_complete()
196 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_complete()
Dblk.h134 struct bio_integrity_payload *bip = bio_integrity(req->bio); in integrity_req_gap_back_merge() local
137 return bvec_gap_to_prev(req->q, &bip->bip_vec[bip->bip_vcnt - 1], in integrity_req_gap_back_merge()
144 struct bio_integrity_payload *bip = bio_integrity(bio); in integrity_req_gap_front_merge() local
147 return bvec_gap_to_prev(req->q, &bip->bip_vec[bip->bip_vcnt - 1], in integrity_req_gap_front_merge()
/Linux-v5.4/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_make_request() local
178 bip = bio_integrity(bio); in nd_blk_make_request()
[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 …]
/Linux-v5.4/include/linux/
Dbio.h337 struct bio_integrity_payload *bip = bio_integrity(bio); in bio_integrity_flagged() local
339 if (bip) in bio_integrity_flagged()
340 return bip->bip_flags & flag; in bio_integrity_flagged()
345 static inline sector_t bip_get_seed(struct bio_integrity_payload *bip) in bip_get_seed() argument
347 return bip->bip_iter.bi_sector; in bip_get_seed()
350 static inline void bip_set_seed(struct bio_integrity_payload *bip, in bip_set_seed() argument
353 bip->bip_iter.bi_sector = seed; in bip_set_seed()
742 #define bip_for_each_vec(bvl, bip, iter) \ argument
743 for_each_bvec(bvl, (bip)->bip_vec, iter, (bip)->bip_iter)
/Linux-v5.4/drivers/target/
Dtarget_core_iblock.c630 struct bio_integrity_payload *bip; in iblock_alloc_bip() local
641 bip = bio_integrity_alloc(bio, GFP_NOIO, in iblock_alloc_bip()
643 if (IS_ERR(bip)) { in iblock_alloc_bip()
645 return PTR_ERR(bip); in iblock_alloc_bip()
648 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()
651 pr_debug("IBLOCK BIP Size: %u Sector: %llu\n", bip->bip_iter.bi_size, in iblock_alloc_bip()
652 (unsigned long long)bip->bip_iter.bi_sector); in iblock_alloc_bip()
654 resid = bip->bip_iter.bi_size; in iblock_alloc_bip()
/Linux-v5.4/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.c315 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_data_write_verify() local
328 if (bip) in xfs_dir3_data_write_verify()
329 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify()
Dxfs_sb.c749 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_sb_write_verify() local
767 if (bip) in xfs_sb_write_verify()
768 XFS_BUF_TO_SBP(bp)->sb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_sb_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_alloc.c621 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agfl_write_verify() local
634 if (bip) in xfs_agfl_write_verify()
635 XFS_BUF_TO_AGFL(bp)->agfl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agfl_write_verify()
2656 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agf_write_verify() local
2668 if (bip) in xfs_agf_write_verify()
2669 XFS_BUF_TO_AGF(bp)->agf_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agf_write_verify()
Dxfs_dir2_leaf.c177 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_leaf_write_verify() local
190 if (bip) in xfs_dir3_leaf_write_verify()
191 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_leaf_write_verify()
Dxfs_btree.c274 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_btree_lblock_calc_crc() local
278 if (bip) in xfs_btree_lblock_calc_crc()
279 block->bb_u.l.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_lblock_calc_crc()
312 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_btree_sblock_calc_crc() local
316 if (bip) in xfs_btree_sblock_calc_crc()
317 block->bb_u.s.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_sblock_calc_crc()
Dxfs_dir2_node.c127 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_free_write_verify() local
140 if (bip) in xfs_dir3_free_write_verify()
141 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_free_write_verify()
Dxfs_ialloc.c2540 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agi_write_verify() local
2552 if (bip) in xfs_agi_write_verify()
2553 XFS_BUF_TO_AGI(bp)->agi_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agi_write_verify()
/Linux-v5.4/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).
/Linux-v5.4/drivers/md/
Ddm-integrity.c1584 struct bio_integrity_payload *bip = dio->orig_bi_integrity; in integrity_metadata() local
1586 if (bip) { in integrity_metadata()
1593 bip_for_each_vec(biv, bip, iter) { in integrity_metadata()
1622 struct bio_integrity_payload *bip; in dm_integrity_map() local
1669 bip = bio_integrity(bio); in dm_integrity_map()
1671 if (bip) { in dm_integrity_map()
1677 if (unlikely(wanted_tag_size != bip->bip_iter.bi_size)) { in dm_integrity_map()
1679 bip->bip_iter.bi_size, wanted_tag_size); in dm_integrity_map()
1684 if (unlikely(bip != NULL)) { in dm_integrity_map()
1763 struct bio_integrity_payload *bip = bio_integrity(bio); in __journal_read_write() local
[all …]
Ddm-crypt.c815 struct bio_integrity_payload *bip; in dm_crypt_integrity_io_alloc() local
822 bip = bio_integrity_alloc(bio, GFP_NOIO, 1); in dm_crypt_integrity_io_alloc()
823 if (IS_ERR(bip)) in dm_crypt_integrity_io_alloc()
824 return PTR_ERR(bip); in dm_crypt_integrity_io_alloc()
828 bip->bip_iter.bi_size = tag_len; in dm_crypt_integrity_io_alloc()
829 bip->bip_iter.bi_sector = io->cc->start + io->sector; in dm_crypt_integrity_io_alloc()
Draid5.c3208 struct bio **bip; in add_stripe_bio() local
3222 bip = &sh->dev[dd_idx].towrite; in add_stripe_bio()
3223 if (*bip == NULL) in add_stripe_bio()
3226 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
3227 while (*bip && (*bip)->bi_iter.bi_sector < bi->bi_iter.bi_sector) { in add_stripe_bio()
3228 if (bio_end_sector(*bip) > bi->bi_iter.bi_sector) in add_stripe_bio()
3230 bip = & (*bip)->bi_next; in add_stripe_bio()
3232 if (*bip && (*bip)->bi_iter.bi_sector < bio_end_sector(bi)) in add_stripe_bio()
3268 BUG_ON(*bip && bi->bi_next && (*bip) != bi->bi_next); in add_stripe_bio()
3269 if (*bip) in add_stripe_bio()
[all …]
/Linux-v5.4/Documentation/filesystems/
Dxfs-self-describing-metadata.txt301 struct xfs_buf_log_item *bip = bp->b_fspriv;
313 if (bip) {
315 hdr->lsn = cpu_to_be64(bip->bli_item.li_lsn);
/Linux-v5.4/drivers/nvme/host/
Dcore.c858 struct bio_integrity_payload *bip; in nvme_add_user_metadata() local
870 bip = bio_integrity_alloc(bio, GFP_KERNEL, 1); in nvme_add_user_metadata()
871 if (IS_ERR(bip)) { in nvme_add_user_metadata()
872 ret = PTR_ERR(bip); in nvme_add_user_metadata()
876 bip->bip_iter.bi_size = len; in nvme_add_user_metadata()
877 bip->bip_iter.bi_sector = seed; in nvme_add_user_metadata()

12