| /fs/xfs/ |
| A D | xfs_buf_mem.c | 58 struct xfs_buftarg *btp; in xmbuf_alloc() local 61 btp = kzalloc(struct_size(btp, bt_cache, 1), GFP_KERNEL); in xmbuf_alloc() 62 if (!btp) in xmbuf_alloc() 89 btp->bt_mount = mp; in xmbuf_alloc() 92 btp->bt_file = file; in xmbuf_alloc() 100 trace_xmbuf_create(btp); in xmbuf_alloc() 102 *btpp = btp; in xmbuf_alloc() 110 kfree(btp); in xmbuf_alloc() 122 trace_xmbuf_free(btp); in xmbuf_free() 126 fput(btp->bt_file); in xmbuf_free() [all …]
|
| A D | xfs_buf.c | 1683 fs_put_dax(btp->bt_daxdev, btp->bt_mount); in xfs_free_buftarg() 1685 if (btp->bt_bdev != btp->bt_mount->m_super->s_bdev) in xfs_free_buftarg() 1687 kfree(btp); in xfs_free_buftarg() 1774 btp->bt_shrinker->private_data = btp; in xfs_init_buftarg() 1798 btp = kzalloc(sizeof(*btp), GFP_KERNEL | __GFP_NOFAIL); in xfs_alloc_buftarg() 1803 btp->bt_dev = btp->bt_bdev->bd_dev; in xfs_alloc_buftarg() 1804 btp->bt_daxdev = fs_dax_get_by_bdev(btp->bt_bdev, &btp->bt_dax_part_off, in xfs_alloc_buftarg() 1820 btp->bt_meta_sectormask = btp->bt_meta_sectorsize - 1; in xfs_alloc_buftarg() 1822 error = xfs_init_buftarg(btp, btp->bt_meta_sectorsize, in xfs_alloc_buftarg() 1827 return btp; in xfs_alloc_buftarg() [all …]
|
| A D | xfs_buf_mem.h | 13 static inline bool xfs_buftarg_is_mem(const struct xfs_buftarg *btp) in xfs_buftarg_is_mem() argument 15 return btp->bt_bdev == NULL; in xfs_buftarg_is_mem() 20 void xmbuf_free(struct xfs_buftarg *btp); 22 bool xmbuf_verify_daddr(struct xfs_buftarg *btp, xfs_daddr_t daddr);
|
| A D | xfs_buf.h | 375 int xfs_configure_buftarg(struct xfs_buftarg *btp, unsigned int sectorsize); 384 int xfs_init_buftarg(struct xfs_buftarg *btp, size_t logical_sectorsize, 386 void xfs_destroy_buftarg(struct xfs_buftarg *btp);
|
| A D | xfs_notify_failure.c | 161 struct xfs_buftarg *btp, in xfs_dax_translate_range() argument 167 u64 dev_start = btp->bt_dax_part_off; in xfs_dax_translate_range() 168 u64 dev_len = bdev_nr_bytes(btp->bt_bdev); in xfs_dax_translate_range()
|
| A D | xfs_discard.c | 124 struct xfs_buftarg *btp = in xfs_discard_extents() local 129 error = __blkdev_issue_discard(btp->bt_bdev, in xfs_discard_extents()
|
| A D | xfs_mount.c | 693 struct xfs_buftarg *btp = xfs_group_type_buftarg(mp, type); in xfs_calc_group_awu_max() local 697 if (btp && btp->bt_awu_min > 0) in xfs_calc_group_awu_max()
|
| A D | xfs_trace.h | 5087 TP_PROTO(struct xfs_buftarg *btp), 5088 TP_ARGS(btp), 5096 struct file *file = btp->bt_file; 5098 __entry->dev = btp->bt_mount->m_super->s_dev; 5112 TP_PROTO(struct xfs_buftarg *btp), 5113 TP_ARGS(btp), 5121 struct file *file = btp->bt_file; 5124 __entry->dev = btp->bt_mount->m_super->s_dev;
|
| /fs/xfs/libxfs/ |
| A D | xfs_dir2_block.c | 216 if (btp->stale) { in xfs_dir2_block_need_space() 339 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact() 344 btp->stale = cpu_to_be32(1); in xfs_dir2_block_compact() 447 } else if (btp->stale) { in xfs_dir2_block_addname() 474 if (!btp->stale) { in xfs_dir2_block_addname() 608 xfs_dir2_block_tail_t *btp; in xfs_dir2_block_log_leaf() local 625 xfs_dir2_block_tail_t *btp; in xfs_dir2_block_log_tail() local 833 be32_add_cpu(&btp->stale, 1); in xfs_dir2_block_removename() 1034 btp->stale = 0; in xfs_dir2_leaf_to_block() 1144 i = (uint)sizeof(*btp) + in xfs_dir2_sf_to_block() [all …]
|
| A D | xfs_dir2_data.c | 105 xfs_dir2_block_tail_t *btp=NULL; /* block tail */ in __xfs_dir3_data_check() local 133 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check() 134 lep = xfs_dir2_block_leaf_p(btp); in __xfs_dir3_data_check() 136 if (be32_to_cpu(btp->count) >= in __xfs_dir3_data_check() 261 for (i = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check() 266 if (i >= be32_to_cpu(btp->count)) in __xfs_dir3_data_check() 278 for (i = stale = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check() 286 if (count != be32_to_cpu(btp->count) - be32_to_cpu(btp->stale)) in __xfs_dir3_data_check() 288 if (stale != be32_to_cpu(btp->stale)) in __xfs_dir3_data_check()
|
| A D | xfs_da_format.h | 549 xfs_dir2_block_leaf_p(struct xfs_dir2_block_tail *btp) in xfs_dir2_block_leaf_p() argument 551 return ((struct xfs_dir2_leaf_entry *)btp) - be32_to_cpu(btp->count); in xfs_dir2_block_leaf_p()
|
| A D | xfs_btree_mem.c | 117 struct xfs_buftarg *btp, in xfbtree_init() argument 135 xfbt->target = btp; in xfbtree_init()
|
| A D | xfs_btree_mem.h | 66 struct xfs_buftarg *btp, const struct xfs_btree_ops *ops);
|
| A D | xfs_rmap_btree.h | 70 struct xfs_buftarg *btp, xfs_agnumber_t agno);
|
| A D | xfs_dir2_leaf.c | 442 xfs_dir2_block_tail_t *btp; /* block's tail */ in xfs_dir2_block_to_leaf() local 479 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf() 480 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_leaf() 487 leafhdr.count = be32_to_cpu(btp->count); in xfs_dir2_block_to_leaf() 488 leafhdr.stale = be32_to_cpu(btp->stale); in xfs_dir2_block_to_leaf() 497 be32_to_cpu(btp->count) * sizeof(struct xfs_dir2_leaf_entry)); in xfs_dir2_block_to_leaf()
|
| A D | xfs_dir2_sf.c | 174 xfs_dir2_block_tail_t *btp; /* tail area of the block */ in xfs_dir2_block_sfsize() local 198 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize() 199 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_sfsize() 204 for (i = 0; i < be32_to_cpu(btp->count); i++) { in xfs_dir2_block_sfsize()
|
| A D | xfs_rtrmap_btree.h | 208 struct xfs_buftarg *btp, xfs_rgnumber_t rgno);
|
| A D | xfs_btree.c | 88 struct xfs_buftarg *btp, in xfs_btree_check_memblock_siblings() argument 100 if (!xmbuf_verify_daddr(btp, xfbno_to_daddr(sibling))) in xfs_btree_check_memblock_siblings() 205 struct xfs_buftarg *btp = cur->bc_mem.xfbtree->target; in __xfs_btree_check_memblock() local 214 fa = xfs_btree_check_memblock_siblings(btp, bno, in __xfs_btree_check_memblock() 217 fa = xfs_btree_check_memblock_siblings(btp, bno, in __xfs_btree_check_memblock() 987 struct xfs_buftarg *btp = cur->bc_mem.xfbtree->target; in xfs_btree_readahead_memblock() local 993 xfs_buf_readahead(btp, xfbno_to_daddr(left), XFBNO_BBSIZE, in xfs_btree_readahead_memblock() 999 xfs_buf_readahead(btp, xfbno_to_daddr(right), XFBNO_BBSIZE, in xfs_btree_readahead_memblock() 4884 struct xfs_buftarg *btp = bp->b_target; in xfs_btree_memblock_verify() local 4896 fa = xfs_btree_check_memblock_siblings(btp, bno, in xfs_btree_memblock_verify() [all …]
|
| A D | xfs_rmap_btree.c | 645 struct xfs_buftarg *btp, in xfs_rmapbt_mem_init() argument 649 return xfbtree_init(mp, xfbt, btp, &xfs_rmapbt_mem_ops); in xfs_rmapbt_mem_init()
|
| A D | xfs_rtrmap_btree.c | 633 struct xfs_buftarg *btp, in xfs_rtrmapbt_mem_init() argument 637 return xfbtree_init(mp, xfbt, btp, &xfs_rtrmapbt_mem_ops); in xfs_rtrmapbt_mem_init()
|
| /fs/xfs/scrub/ |
| A D | rcbag.c | 33 struct xfs_buftarg *btp, in rcbag_init() argument 46 error = rcbagbt_mem_init(mp, &bag->xfbtree, btp); in rcbag_init()
|
| A D | rcbag.h | 13 int rcbag_init(struct xfs_mount *mp, struct xfs_buftarg *btp,
|
| A D | rcbag_btree.c | 215 struct xfs_buftarg *btp) in rcbagbt_mem_init() argument 218 return xfbtree_init(mp, xfbt, btp, &rcbagbt_mem_ops); in rcbagbt_mem_init()
|
| A D | rcbag_btree.h | 67 struct xfs_buftarg *btp);
|