| /linux-6.15/fs/xfs/ |
| H 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 …]
|
| H A D | xfs_buf.c | 400 eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks); in xfs_buf_map_verify() 1710 fs_put_dax(btp->bt_daxdev, btp->bt_mount); in xfs_free_buftarg() 1712 if (btp->bt_bdev != btp->bt_mount->m_super->s_bdev) in xfs_free_buftarg() 1714 kfree(btp); in xfs_free_buftarg() 1764 btp->bt_shrinker->private_data = btp; in xfs_init_buftarg() 1786 btp = kzalloc(sizeof(*btp), GFP_KERNEL | __GFP_NOFAIL); in xfs_alloc_buftarg() 1791 btp->bt_dev = btp->bt_bdev->bd_dev; in xfs_alloc_buftarg() 1792 btp->bt_daxdev = fs_dax_get_by_bdev(btp->bt_bdev, &btp->bt_dax_part_off, in xfs_alloc_buftarg() 1808 if (xfs_init_buftarg(btp, bdev_logical_block_size(btp->bt_bdev), in xfs_alloc_buftarg() 1812 return btp; in xfs_alloc_buftarg() [all …]
|
| H 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);
|
| H 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()
|
| H A D | xfs_buf.h | 387 int xfs_init_buftarg(struct xfs_buftarg *btp, size_t logical_sectorsize, 389 void xfs_destroy_buftarg(struct xfs_buftarg *btp);
|
| /linux-6.15/fs/xfs/libxfs/ |
| H 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 …]
|
| H 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()
|
| H 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()
|
| H A D | xfs_btree_mem.c | 117 struct xfs_buftarg *btp, in xfbtree_init() argument 135 xfbt->target = btp; in xfbtree_init()
|
| H A D | xfs_btree_mem.h | 66 struct xfs_buftarg *btp, const struct xfs_btree_ops *ops);
|
| H A D | xfs_rmap_btree.h | 70 struct xfs_buftarg *btp, xfs_agnumber_t agno);
|
| H A D | xfs_rtrmap_btree.h | 208 struct xfs_buftarg *btp, xfs_rgnumber_t rgno);
|
| H 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()
|
| H 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()
|
| H A D | xfs_rmap_btree.c | 666 struct xfs_buftarg *btp, in xfs_rmapbt_mem_init() argument 670 return xfbtree_init(mp, xfbt, btp, &xfs_rmapbt_mem_ops); in xfs_rmapbt_mem_init()
|
| H 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() 4883 struct xfs_buftarg *btp = bp->b_target; in xfs_btree_memblock_verify() local 4895 fa = xfs_btree_check_memblock_siblings(btp, bno, in xfs_btree_memblock_verify() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | nmi.h | 222 void nmi_backtrace_stall_snap(const struct cpumask *btp); 223 void nmi_backtrace_stall_check(const struct cpumask *btp); 225 static inline void nmi_backtrace_stall_snap(const struct cpumask *btp) {} in nmi_backtrace_stall_snap() argument 226 static inline void nmi_backtrace_stall_check(const struct cpumask *btp) {} in nmi_backtrace_stall_check() argument
|
| H A D | trace_events.h | 772 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link); 773 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link); 776 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp); 803 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_register() argument 807 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_unregister() argument 815 static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | nmi.c | 641 void nmi_backtrace_stall_snap(const struct cpumask *btp) in nmi_backtrace_stall_snap() argument 646 for_each_cpu(cpu, btp) { in nmi_backtrace_stall_snap() 655 void nmi_backtrace_stall_check(const struct cpumask *btp) in nmi_backtrace_stall_check() argument 666 for_each_cpu(cpu, btp) { in nmi_backtrace_stall_check()
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | rcbag.h | 13 int rcbag_init(struct xfs_mount *mp, struct xfs_buftarg *btp,
|
| H 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()
|
| H A D | rcbag_btree.h | 67 struct xfs_buftarg *btp);
|
| H A D | rcbag_btree.c | 233 struct xfs_buftarg *btp) in rcbagbt_mem_init() argument 236 return xfbtree_init(mp, xfbt, btp, &rcbagbt_mem_ops); in rcbagbt_mem_init()
|
| /linux-6.15/kernel/trace/ |
| H A D | bpf_trace.c | 58 struct bpf_raw_event_map *btp, *ret = NULL; in bpf_get_raw_tracepoint_module() local 65 btp = &btm->module->bpf_raw_events[i]; in bpf_get_raw_tracepoint_module() 66 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module() 68 ret = btp; in bpf_get_raw_tracepoint_module() 2329 for (; btp < __stop__bpf_raw_tp; btp++) { in bpf_get_raw_tracepoint() 2330 if (!strcmp(btp->tp->name, name)) in bpf_get_raw_tracepoint() 2331 return btp; in bpf_get_raw_tracepoint() 2342 mod = __module_address((unsigned long)btp); in bpf_put_raw_tracepoint() 2418 struct tracepoint *tp = btp->tp; in bpf_probe_register() 2428 if (prog->aux->max_tp_access > btp->writable_size) in bpf_probe_register() [all …]
|
| /linux-6.15/kernel/bpf/ |
| H A D | syscall.c | 3634 bpf_probe_unregister(raw_tp->btp, raw_tp); in bpf_raw_tp_link_release() 3635 bpf_put_raw_tracepoint(raw_tp->btp); in bpf_raw_tp_link_release() 3654 raw_tp_link->btp->tp->name); in bpf_raw_tp_link_show_fdinfo() 3953 struct bpf_raw_event_map *btp; in bpf_raw_tp_link_attach() local 3984 btp = bpf_get_raw_tracepoint(tp_name); in bpf_raw_tp_link_attach() 3985 if (!btp) in bpf_raw_tp_link_attach() 3995 tracepoint_is_faultable(btp->tp)); in bpf_raw_tp_link_attach() 3996 link->btp = btp; in bpf_raw_tp_link_attach() 4014 bpf_put_raw_tracepoint(btp); in bpf_raw_tp_link_attach() 5262 struct bpf_raw_event_map *btp = raw_tp->btp; in bpf_task_fd_query() local [all …]
|