Home
last modified time | relevance | path

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

/Linux-v5.4/fs/xfs/libxfs/
Dxfs_dir2_block.c161 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_need_space() argument
180 if (btp->stale) { in xfs_dir2_block_need_space()
205 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
208 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
274 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_compact() argument
285 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact()
301 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact()
302 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact()
303 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact()
306 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact()
[all …]
Dxfs_dir2_data.c38 xfs_dir2_block_tail_t *btp=NULL; /* block tail */ in __xfs_dir3_data_check() local
79 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check()
80 lep = xfs_dir2_block_leaf_p(btp); in __xfs_dir3_data_check()
89 if (be32_to_cpu(btp->count) >= in __xfs_dir3_data_check()
90 ((char *)btp - p) / sizeof(struct xfs_dir2_leaf_entry)) in __xfs_dir3_data_check()
193 for (i = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check()
198 if (i >= be32_to_cpu(btp->count)) in __xfs_dir3_data_check()
210 for (i = stale = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check()
218 if (count != be32_to_cpu(btp->count) - be32_to_cpu(btp->stale)) in __xfs_dir3_data_check()
220 if (stale != be32_to_cpu(btp->stale)) in __xfs_dir3_data_check()
Dxfs_da_format.h571 xfs_dir2_block_leaf_p(struct xfs_dir2_block_tail *btp) in xfs_dir2_block_leaf_p() argument
573 return ((struct xfs_dir2_leaf_entry *)btp) - be32_to_cpu(btp->count); in xfs_dir2_block_leaf_p()
Dxfs_dir2_leaf.c338 xfs_dir2_block_tail_t *btp; /* block's tail */ in xfs_dir2_block_to_leaf() local
376 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf()
377 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_leaf()
385 leafhdr.count = be32_to_cpu(btp->count); in xfs_dir2_block_to_leaf()
386 leafhdr.stale = be32_to_cpu(btp->stale); in xfs_dir2_block_to_leaf()
394 memcpy(ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
Dxfs_dir2_sf.c54 xfs_dir2_block_tail_t *btp; /* tail area of the block */ in xfs_dir2_block_sfsize() local
78 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize()
79 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_sfsize()
84 for (i = 0; i < be32_to_cpu(btp->count); i++) { in xfs_dir2_block_sfsize()
/Linux-v5.4/fs/xfs/
Dxfs_buf.c569 struct xfs_buftarg *btp, in xfs_buf_find() argument
588 ASSERT(!(BBTOB(cmap.bm_len) < btp->bt_meta_sectorsize)); in xfs_buf_find()
589 ASSERT(!(BBTOB(cmap.bm_bn) & (xfs_off_t)btp->bt_meta_sectormask)); in xfs_buf_find()
595 eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks); in xfs_buf_find()
597 xfs_alert(btp->bt_mount, in xfs_buf_find()
604 pag = xfs_perag_get(btp->bt_mount, in xfs_buf_find()
605 xfs_daddr_to_agno(btp->bt_mount, cmap.bm_bn)); in xfs_buf_find()
617 XFS_STATS_INC(btp->bt_mount, xb_miss_locked); in xfs_buf_find()
638 XFS_STATS_INC(btp->bt_mount, xb_busy_locked); in xfs_buf_find()
642 XFS_STATS_INC(btp->bt_mount, xb_get_locked_waited); in xfs_buf_find()
[all …]
Dxfs_pwork.c129 struct xfs_buftarg *btp = mp->m_ddev_targp; in xfs_pwork_guess_datadev_parallelism() local
135 return blk_queue_nonrot(btp->bt_bdev->bd_queue) ? 2 : 1; in xfs_pwork_guess_datadev_parallelism()
/Linux-v5.4/kernel/trace/
Dbpf_trace.c36 struct bpf_raw_event_map *btp, *ret = NULL; in bpf_get_raw_tracepoint_module() local
43 btp = &btm->module->bpf_raw_events[i]; in bpf_get_raw_tracepoint_module()
44 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module()
46 ret = btp; in bpf_get_raw_tracepoint_module()
1313 struct bpf_raw_event_map *btp = __start__bpf_raw_tp; in bpf_get_raw_tracepoint() local
1315 for (; btp < __stop__bpf_raw_tp; btp++) { in bpf_get_raw_tracepoint()
1316 if (!strcmp(btp->tp->name, name)) in bpf_get_raw_tracepoint()
1317 return btp; in bpf_get_raw_tracepoint()
1323 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
1325 struct module *mod = __module_address((unsigned long)btp); in bpf_put_raw_tracepoint()
[all …]
/Linux-v5.4/include/linux/
Dtrace_events.h481 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog);
482 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *prog);
484 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp);
507 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p) in bpf_probe_register() argument
511 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p) in bpf_probe_unregister() argument
519 static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
/Linux-v5.4/kernel/bpf/
Dsyscall.c1791 struct bpf_raw_event_map *btp; member
1800 bpf_probe_unregister(raw_tp->btp, raw_tp->prog); in bpf_raw_tracepoint_release()
1803 bpf_put_raw_tracepoint(raw_tp->btp); in bpf_raw_tracepoint_release()
1819 struct bpf_raw_event_map *btp; in bpf_raw_tracepoint_open() local
1829 btp = bpf_get_raw_tracepoint(tp_name); in bpf_raw_tracepoint_open()
1830 if (!btp) in bpf_raw_tracepoint_open()
1838 raw_tp->btp = btp; in bpf_raw_tracepoint_open()
1851 err = bpf_probe_register(raw_tp->btp, prog); in bpf_raw_tracepoint_open()
1859 bpf_probe_unregister(raw_tp->btp, prog); in bpf_raw_tracepoint_open()
1870 bpf_put_raw_tracepoint(btp); in bpf_raw_tracepoint_open()
[all …]