Home
last modified time | relevance | path

Searched refs:btp (Results 1 – 25 of 26) sorted by relevance

12

/linux/fs/xfs/
H A Dxfs_buf_mem.c58 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()
84 error = xfs_buf_cache_init(btp->bt_cache); in xmbuf_alloc()
89 btp->bt_mount = mp; in xmbuf_alloc()
90 btp->bt_dev = (dev_t)-1U; in xmbuf_alloc()
91 btp->bt_bdev = NULL; /* in-memory buftargs have no bdev */ in xmbuf_alloc()
92 btp->bt_file = file; in xmbuf_alloc()
93 btp->bt_meta_sectorsize = XMBUF_BLOCKSIZE; in xmbuf_alloc()
94 btp->bt_meta_sectormask = XMBUF_BLOCKSIZE - 1; in xmbuf_alloc()
[all …]
H A Dxfs_buf.c535 struct xfs_buftarg *btp, in xfs_buf_map_verify()
541 ASSERT(!(BBTOB(map->bm_len) < btp->bt_meta_sectorsize)); in xfs_buf_map_verify()
542 ASSERT(!(BBTOB(map->bm_bn) & (xfs_off_t)btp->bt_meta_sectormask)); in xfs_buf_map_verify()
548 eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks); in xfs_buf_map_verify()
550 xfs_alert(btp->bt_mount, in xfs_buf_map_verify()
626 struct xfs_buftarg *btp, in xfs_buf_find_insert()
639 error = _xfs_buf_alloc(btp, map, nmaps, flags, &new_bp); in xfs_buf_find_insert()
694 struct xfs_buftarg *btp, in xfs_buftarg_get_pag()
697 struct xfs_mount *mp = btp in xfs_buftarg_get_pag()
532 xfs_buf_map_verify(struct xfs_buftarg * btp,struct xfs_buf_map * map) xfs_buf_map_verify() argument
623 xfs_buf_find_insert(struct xfs_buftarg * btp,struct xfs_buf_cache * bch,struct xfs_perag * pag,struct xfs_buf_map * cmap,struct xfs_buf_map * map,int nmaps,xfs_buf_flags_t flags,struct xfs_buf ** bpp) xfs_buf_find_insert() argument
691 xfs_buftarg_get_pag(struct xfs_buftarg * btp,const struct xfs_buf_map * map) xfs_buftarg_get_pag() argument
703 xfs_buftarg_buf_cache(struct xfs_buftarg * btp,struct xfs_perag * pag) xfs_buftarg_buf_cache() argument
718 xfs_buf_get_map(struct xfs_buftarg * btp,struct xfs_buf_map * map,int nmaps,xfs_buf_flags_t flags,struct xfs_buf ** bpp) xfs_buf_get_map() argument
1061 struct xfs_buftarg *btp = bp->b_target; xfs_buf_rele_cached() local
1888 xfs_buftarg_wait(struct xfs_buftarg * btp) xfs_buftarg_wait() argument
1909 xfs_buftarg_drain(struct xfs_buftarg * btp) xfs_buftarg_drain() argument
1989 struct xfs_buftarg *btp = shrink->private_data; xfs_buftarg_shrink_scan() local
2011 struct xfs_buftarg *btp = shrink->private_data; xfs_buftarg_shrink_count() local
2017 xfs_destroy_buftarg(struct xfs_buftarg * btp) xfs_destroy_buftarg() argument
2027 xfs_free_buftarg(struct xfs_buftarg * btp) xfs_free_buftarg() argument
2039 xfs_setsize_buftarg(struct xfs_buftarg * btp,unsigned int sectorsize) xfs_setsize_buftarg() argument
2058 xfs_init_buftarg(struct xfs_buftarg * btp,size_t logical_sectorsize,const char * descr) xfs_init_buftarg() argument
2100 struct xfs_buftarg *btp; xfs_alloc_buftarg() local
[all...]
H A Dxfs_buf_mem.h13 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);
24 bool xmbuf_verify_daddr(struct xfs_buftarg *btp, xfs_daddr_t daddr);
H A Dxfs_buf.h395 int xfs_init_buftarg(struct xfs_buftarg *btp, size_t logical_sectorsize,
397 void xfs_destroy_buftarg(struct xfs_buftarg *btp);
H A Dxfs_trace.h4713 TP_PROTO(struct xfs_buftarg *btp),
4714 TP_ARGS(btp),
4722 struct file *file = btp->bt_file;
4724 __entry->dev = btp->bt_mount->m_super->s_dev;
4738 TP_PROTO(struct xfs_buftarg *btp),
4739 TP_ARGS(btp),
4747 struct file *file = btp->bt_file;
4750 __entry->dev = btp->bt_mount->m_super->s_dev;
/linux/fs/xfs/libxfs/
H A Dxfs_dir2_block.c197 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_need_space()
216 if (btp->stale) { in xfs_dir2_block_need_space()
241 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
244 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
310 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_compact()
321 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact()
337 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact()
338 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact()
339 be32_add_cpu(&btp->count, -(be32_to_cpu(btp in xfs_dir2_block_compact()
192 xfs_dir2_block_need_space(struct xfs_inode * dp,struct xfs_dir2_data_hdr * hdr,struct xfs_dir2_block_tail * btp,struct xfs_dir2_leaf_entry * blp,__be16 ** tagpp,struct xfs_dir2_data_unused ** dupp,struct xfs_dir2_data_unused ** enddupp,int * compact,int len) xfs_dir2_block_need_space() argument
305 xfs_dir2_block_compact(struct xfs_da_args * args,struct xfs_buf * bp,struct xfs_dir2_data_hdr * hdr,struct xfs_dir2_block_tail * btp,struct xfs_dir2_leaf_entry * blp,int * needlog,int * lfloghigh,int * lfloglow) xfs_dir2_block_compact() argument
358 xfs_dir2_block_tail_t *btp; /* block tail */ xfs_dir2_block_addname() local
603 xfs_dir2_block_tail_t *btp; xfs_dir2_block_log_leaf() local
620 xfs_dir2_block_tail_t *btp; xfs_dir2_block_log_tail() local
638 xfs_dir2_block_tail_t *btp; /* block tail */ xfs_dir2_block_lookup() local
686 xfs_dir2_block_tail_t *btp; /* block tail */ xfs_dir2_block_lookup_int() local
786 xfs_dir2_block_tail_t *btp; /* block tail */ xfs_dir2_block_removename() local
867 xfs_dir2_block_tail_t *btp; /* block tail */ xfs_dir2_block_replace() local
931 xfs_dir2_block_tail_t *btp; /* block tail */ xfs_dir2_leaf_to_block() local
1082 xfs_dir2_block_tail_t *btp; /* block tail pointer */ xfs_dir2_sf_to_block() local
[all...]
H A Dxfs_dir2_data.c105 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 Dxfs_da_format.h549 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 Dxfs_btree_mem.c118 struct xfs_buftarg *btp, in xfbtree_init() argument
136 xfbt->target = btp; in xfbtree_init()
H A Dxfs_rmap_btree.h70 struct xfs_buftarg *btp, xfs_agnumber_t agno);
H A Dxfs_btree_mem.h66 struct xfs_buftarg *btp, const struct xfs_btree_ops *ops);
H A Dxfs_dir2_leaf.c442 xfs_dir2_block_tail_t *btp; /* block's tail */ in xfs_dir2_block_to_leaf()
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_dir3_leaf_find_stale()
392 xfs_dir2_block_tail_t *btp; /* block's tail */ xfs_dir2_block_to_leaf() local
H A Dxfs_dir2_sf.c174 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 Dxfs_btree.c82 struct xfs_buftarg *btp, in xfs_btree_check_memblock_siblings() argument
94 if (!xmbuf_verify_daddr(btp, xfbno_to_daddr(sibling))) in xfs_btree_check_memblock_siblings()
199 struct xfs_buftarg *btp = cur->bc_mem.xfbtree->target; in __xfs_btree_check_memblock() local
208 fa = xfs_btree_check_memblock_siblings(btp, bno, in __xfs_btree_check_memblock()
211 fa = xfs_btree_check_memblock_siblings(btp, bno, in __xfs_btree_check_memblock()
993 struct xfs_buftarg *btp = cur->bc_mem.xfbtree->target; in xfs_btree_readahead_memblock() local
999 xfs_buf_readahead(btp, xfbno_to_daddr(left), XFBNO_BBSIZE, in xfs_btree_readahead_memblock()
1005 xfs_buf_readahead(btp, xfbno_to_daddr(right), XFBNO_BBSIZE, in xfs_btree_readahead_memblock()
4705 struct xfs_buftarg *btp = bp->b_target; in xfs_btree_memblock_verify() local
4717 fa = xfs_btree_check_memblock_siblings(btp, bno, in xfs_btree_memblock_verify()
[all …]
H A Dxfs_rmap_btree.c666 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()
/linux/include/linux/
H A Dnmi.h226 void nmi_backtrace_stall_snap(const struct cpumask *btp);
227 void nmi_backtrace_stall_check(const struct cpumask *btp); in nmi_backtrace_stall_snap() argument
229 static inline void nmi_backtrace_stall_snap(const struct cpumask *btp) {}
230 static inline void nmi_backtrace_stall_check(const struct cpumask *btp) {}
228 nmi_backtrace_stall_check(const struct cpumask * btp) nmi_backtrace_stall_check() argument
H A Dtrace_events.h770 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link);
771 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link);
774 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp);
801 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_register() argument
805 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_unregister() argument
813 static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
H A Dbpf.h1638 struct bpf_raw_event_map *btp; member
/linux/arch/x86/kernel/
H A Dnmi.c599 void nmi_backtrace_stall_snap(const struct cpumask *btp) in nmi_backtrace_stall_snap() argument
604 for_each_cpu(cpu, btp) { in nmi_backtrace_stall_snap()
613 void nmi_backtrace_stall_check(const struct cpumask *btp) in nmi_backtrace_stall_check() argument
624 for_each_cpu(cpu, btp) { in nmi_backtrace_stall_check()
/linux/kernel/trace/
H A Dbpf_trace.c59 struct bpf_raw_event_map *btp, *ret = NULL; in bpf_get_raw_tracepoint_module() local
66 btp = &btm->module->bpf_raw_events[i]; in bpf_get_raw_tracepoint_module()
67 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module()
69 ret = btp; in bpf_get_raw_tracepoint_module()
2369 struct bpf_raw_event_map *btp = __start__bpf_raw_tp; in bpf_get_raw_tracepoint() local
2371 for (; btp < __stop__bpf_raw_tp; btp++) { in bpf_get_raw_tracepoint()
2372 if (!strcmp(btp->tp->name, name)) in bpf_get_raw_tracepoint()
2373 return btp; in bpf_get_raw_tracepoint()
2379 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
2459 bpf_probe_register(struct bpf_raw_event_map * btp,struct bpf_raw_tp_link * link) bpf_probe_register() argument
2477 bpf_probe_unregister(struct bpf_raw_event_map * btp,struct bpf_raw_tp_link * link) bpf_probe_unregister() argument
[all...]
/linux/fs/xfs/scrub/
H A Drcbag.c33 struct xfs_buftarg *btp, in rcbag_init() argument
46 error = rcbagbt_mem_init(mp, &bag->xfbtree, btp); in rcbag_init()
H A Drcbag.h13 int rcbag_init(struct xfs_mount *mp, struct xfs_buftarg *btp,
H A Drcbag_btree.c233 struct xfs_buftarg *btp) in rcbagbt_mem_init() argument
236 return xfbtree_init(mp, xfbt, btp, &rcbagbt_mem_ops); in rcbagbt_mem_init()
H A Drcbag_btree.h67 struct xfs_buftarg *btp);
/linux/kernel/bpf/
H A Dsyscall.c3541 bpf_probe_unregister(raw_tp->btp, raw_tp); in bpf_raw_tp_link_release()
3542 bpf_put_raw_tracepoint(raw_tp->btp); in bpf_raw_tp_link_release()
3561 raw_tp_link->btp->tp->name); in bpf_raw_tp_link_show_fdinfo()
3589 const char *tp_name = raw_tp_link->btp->tp->name; in bpf_raw_tp_link_fill_link_info()
3845 struct bpf_raw_event_map *btp; in bpf_raw_tp_link_attach() local
3876 btp = bpf_get_raw_tracepoint(tp_name); in bpf_raw_tp_link_attach()
3877 if (!btp) in bpf_raw_tp_link_attach()
3887 link->btp = btp; in bpf_raw_tp_link_attach()
3896 err = bpf_probe_register(link->btp, link); in bpf_raw_tp_link_attach()
3905 bpf_put_raw_tracepoint(btp); in bpf_raw_tp_link_attach()
[all …]

12