Home
last modified time | relevance | path

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

/linux/fs/xfs/
H A 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 …]
H A Dxfs_buf_item.h52 void xfs_buf_item_put(struct xfs_buf_log_item *bip);
H A Dxfs_buf_item_recover.c449 struct xfs_buf_log_item *bip; in xlog_recover_validate_buf_type() local
453 bip = bp->b_log_item; in xlog_recover_validate_buf_type()
454 bip->bli_item.li_lsn = current_lsn; in xlog_recover_validate_buf_type()
/linux/Documentation/translations/zh_CN/block/
H A Ddata-integrity.rst102 一个新字段。调用 bio_integrity(bio) 会返回一个指向 struct bip 的指针,该
103 结构体包含了该 bio 的完整性负载。本质上,bip 是一个精简版的 struct bio,其
108 性保护。该函数会分配并附加一个 bip 到该 bio 上。
112 调用 bio_free() 会自动释放bip
167 `struct bip * bio_integrity_alloc(bio, gfp_mask, nr_pages);`
177 将包含完整性元数据的一页附加到已有的 bio 上。该 bio 必须已有 bip
181 中可能会被修改!完整性元数据中的第一个引用标签必须等于 bip->bip_sector。
183 只要 bip bio_vec array(nr_pages)有空间,就可以继续通过
/linux/block/
H A Dt10-pi.c134 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_prepare() local
135 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_prepare()
140 if (bip->bip_flags & BIP_MAPPED_INTEGRITY) in t10_pi_type1_prepare()
143 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_prepare()
160 bip->bip_flags |= BIP_MAPPED_INTEGRITY; in t10_pi_type1_prepare()
186 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_complete() local
187 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_complete()
191 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_complete()
308 struct bio_integrity_payload *bip = bio_integrity(bio); in ext_pi_type1_prepare() local
309 u64 virt = lower_48_bits(bip_get_seed(bip)); in ext_pi_type1_prepare()
[all …]
/linux/drivers/md/
H A Ddm-io-rewind.c58 struct bio_integrity_payload *bip = bio_integrity(bio); in dm_bio_integrity_rewind() local
62 bip->bip_iter.bi_sector -= bio_integrity_intervals(bi, bytes_done >> 9); in dm_bio_integrity_rewind()
63 dm_bvec_iter_rewind(bip->bip_vec, &bip->bip_iter, bytes); in dm_bio_integrity_rewind()
H A Ddm-integrity.c1985 struct bio_integrity_payload *bip = dio->bio_details.bi_integrity; in integrity_metadata() local
1987 if (bip) { in integrity_metadata()
1995 bip_for_each_vec(biv, bip, iter) { in integrity_metadata()
2053 struct bio_integrity_payload *bip; in dm_integrity_map() local
2102 bip = bio_integrity(bio); in dm_integrity_map()
2104 if (bip) { in dm_integrity_map()
2111 if (unlikely(wanted_tag_size != bip->bip_iter.bi_size)) { in dm_integrity_map()
2113 bip->bip_iter.bi_size, wanted_tag_size); in dm_integrity_map()
2118 if (unlikely(bip != NULL)) { in dm_integrity_map()
2186 struct bio_integrity_payload *bip = bio_integrity(bio); in __journal_read_write() local
[all …]
H A Ddm-crypt.c1137 struct bio_integrity_payload *bip; in dm_crypt_integrity_io_alloc() local
1144 bip = bio_integrity_alloc(bio, GFP_NOIO, 1); in dm_crypt_integrity_io_alloc()
1145 if (IS_ERR(bip)) in dm_crypt_integrity_io_alloc()
1146 return PTR_ERR(bip); in dm_crypt_integrity_io_alloc()
1150 bip->bip_iter.bi_sector = bio->bi_iter.bi_sector; in dm_crypt_integrity_io_alloc()
/linux/drivers/nvme/target/
H A Dio-cmd-bdev.c193 struct bio_integrity_payload *bip; in nvmet_bdev_alloc_bip() local
203 bip = bio_integrity_alloc(bio, GFP_NOIO, in nvmet_bdev_alloc_bip()
205 if (IS_ERR(bip)) { in nvmet_bdev_alloc_bip()
207 return PTR_ERR(bip); in nvmet_bdev_alloc_bip()
211 bip_set_seed(bip, bio->bi_iter.bi_sector >> in nvmet_bdev_alloc_bip()
/linux/Documentation/block/
H A 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.
216 `struct bip * bio_integrity_alloc(bio, gfp_mask, nr_pages);`
228 bio. The bio must have an existing bip,
235 integrity metadata must have a value of bip->bip_sector.
238 there is room in the bip bio_vec array (nr_pages).
/linux/drivers/target/
H A Dtarget_core_iblock.c694 struct bio_integrity_payload *bip; in iblock_alloc_bip() local
705 bip = bio_integrity_alloc(bio, GFP_NOIO, bio_max_segs(cmd->t_prot_nents)); in iblock_alloc_bip()
706 if (IS_ERR(bip)) { in iblock_alloc_bip()
708 return PTR_ERR(bip); in iblock_alloc_bip()
712 bip_set_seed(bip, bio->bi_iter.bi_sector >> in iblock_alloc_bip()
715 pr_debug("IBLOCK BIP Size: %u Sector: %llu\n", bip->bip_iter.bi_size, in iblock_alloc_bip()
716 (unsigned long long)bip->bip_iter.bi_sector); in iblock_alloc_bip()
/linux/fs/xfs/libxfs/
H A Dxfs_symlink_remote.c141 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_symlink_write_verify() local
154 if (bip) { in xfs_symlink_write_verify()
156 dsl->sl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_symlink_write_verify()
H A Dxfs_dir2_data.c383 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_data_write_verify() local
396 if (bip) in xfs_dir3_data_write_verify()
397 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify()
H A Dxfs_rtbitmap.c89 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_rtbuf_verify_write() local
101 if (bip) in xfs_rtbuf_verify_write()
102 hdr->rt_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_rtbuf_verify_write()
H A Dxfs_alloc.c845 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agfl_write_verify() local
858 if (bip) in xfs_agfl_write_verify()
859 XFS_BUF_TO_AGFL(bp)->agfl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agfl_write_verify()
3334 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agf_write_verify() local
3347 if (bip) in xfs_agf_write_verify()
3348 agf->agf_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agf_write_verify()
H A Dxfs_btree.c410 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_btree_fsblock_calc_crc() local
414 if (bip) in xfs_btree_fsblock_calc_crc()
415 block->bb_u.l.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_fsblock_calc_crc()
448 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_btree_agblock_calc_crc() local
452 if (bip) in xfs_btree_agblock_calc_crc()
453 block->bb_u.s.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_agblock_calc_crc()
H A Dxfs_ialloc.c2719 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agi_write_verify() local
2732 if (bip) in xfs_agi_write_verify()
2733 agi->agi_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agi_write_verify()
H A Dxfs_attr_leaf.c417 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_attr3_leaf_write_verify() local
430 if (bip) in xfs_attr3_leaf_write_verify()
431 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_attr3_leaf_write_verify()
H A Dxfs_da_btree.c305 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_da3_node_write_verify() local
318 if (bip) in xfs_da3_node_write_verify()
319 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_da3_node_write_verify()
H A Dxfs_bmap.c274 struct xfs_buf_log_item *bip = (struct xfs_buf_log_item *)lip; in xfs_bmap_get_bp() local
276 if (bip->bli_item.li_type == XFS_LI_BUF && in xfs_bmap_get_bp()
277 xfs_buf_daddr(bip->bli_buf) == bno) in xfs_bmap_get_bp()
278 return bip->bli_buf; in xfs_bmap_get_bp()
/linux/Documentation/filesystems/xfs/
H A Dxfs-self-describing-metadata.rst305 struct xfs_buf_log_item *bip = bp->b_fspriv;
317 if (bip) {
319 hdr->lsn = cpu_to_be64(bip->bli_item.li_lsn);