/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_dir2_block.c | 164 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_need_space() argument 183 if (btp->stale) { in xfs_dir2_block_need_space() 208 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space() 211 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space() 277 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_compact() argument 288 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact() 304 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact() 305 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact() 306 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact() 309 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact() [all …]
|
D | xfs_dir2_data.c | 41 xfs_dir2_block_tail_t *btp=NULL; /* block tail */ in __xfs_dir3_data_check() local 83 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check() 84 lep = xfs_dir2_block_leaf_p(btp); in __xfs_dir3_data_check() 93 if (be32_to_cpu(btp->count) >= in __xfs_dir3_data_check() 94 ((char *)btp - p) / sizeof(struct xfs_dir2_leaf_entry)) in __xfs_dir3_data_check() 197 for (i = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check() 202 if (i >= be32_to_cpu(btp->count)) in __xfs_dir3_data_check() 214 for (i = stale = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check() 222 if (count != be32_to_cpu(btp->count) - be32_to_cpu(btp->stale)) in __xfs_dir3_data_check() 224 if (stale != be32_to_cpu(btp->stale)) in __xfs_dir3_data_check()
|
D | xfs_da_format.h | 571 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()
|
D | xfs_dir2_leaf.c | 399 xfs_dir2_block_tail_t *btp; /* block's tail */ in xfs_dir2_block_to_leaf() local 437 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf() 438 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_leaf() 446 leafhdr.count = be32_to_cpu(btp->count); in xfs_dir2_block_to_leaf() 447 leafhdr.stale = be32_to_cpu(btp->stale); in xfs_dir2_block_to_leaf() 455 memcpy(ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
|
D | xfs_dir2_sf.c | 57 xfs_dir2_block_tail_t *btp; /* tail area of the block */ in xfs_dir2_block_sfsize() local 81 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize() 82 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_sfsize() 87 for (i = 0; i < be32_to_cpu(btp->count); i++) { in xfs_dir2_block_sfsize()
|
/Linux-v4.19/fs/xfs/ |
D | xfs_buf.c | 547 struct xfs_buftarg *btp, in xfs_buf_find() argument 566 ASSERT(!(BBTOB(cmap.bm_len) < btp->bt_meta_sectorsize)); in xfs_buf_find() 567 ASSERT(!(BBTOB(cmap.bm_bn) & (xfs_off_t)btp->bt_meta_sectormask)); in xfs_buf_find() 573 eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks); in xfs_buf_find() 575 xfs_alert(btp->bt_mount, in xfs_buf_find() 582 pag = xfs_perag_get(btp->bt_mount, in xfs_buf_find() 583 xfs_daddr_to_agno(btp->bt_mount, cmap.bm_bn)); in xfs_buf_find() 595 XFS_STATS_INC(btp->bt_mount, xb_miss_locked); in xfs_buf_find() 616 XFS_STATS_INC(btp->bt_mount, xb_busy_locked); in xfs_buf_find() 620 XFS_STATS_INC(btp->bt_mount, xb_get_locked_waited); in xfs_buf_find() [all …]
|
/Linux-v4.19/kernel/trace/ |
D | bpf_trace.c | 1079 struct bpf_raw_event_map *btp = __start__bpf_raw_tp; in bpf_find_raw_tracepoint() local 1081 for (; btp < __stop__bpf_raw_tp; btp++) { in bpf_find_raw_tracepoint() 1082 if (!strcmp(btp->tp->name, name)) in bpf_find_raw_tracepoint() 1083 return btp; in bpf_find_raw_tracepoint() 1143 static int __bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog) in __bpf_probe_register() argument 1145 struct tracepoint *tp = btp->tp; in __bpf_probe_register() 1151 if (prog->aux->max_ctx_offset > btp->num_args * sizeof(u64)) in __bpf_probe_register() 1154 return tracepoint_probe_register(tp, (void *)btp->bpf_func, prog); in __bpf_probe_register() 1157 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog) in bpf_probe_register() argument 1162 err = __bpf_probe_register(btp, prog); in bpf_probe_register() [all …]
|
/Linux-v4.19/include/linux/ |
D | trace_events.h | 472 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog); 473 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *prog); 497 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p) in bpf_probe_register() argument 501 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p) in bpf_probe_unregister() argument
|
/Linux-v4.19/kernel/bpf/ |
D | syscall.c | 1479 struct bpf_raw_event_map *btp; member 1488 bpf_probe_unregister(raw_tp->btp, raw_tp->prog); in bpf_raw_tracepoint_release() 1506 struct bpf_raw_event_map *btp; in bpf_raw_tracepoint_open() local 1516 btp = bpf_find_raw_tracepoint(tp_name); in bpf_raw_tracepoint_open() 1517 if (!btp) in bpf_raw_tracepoint_open() 1523 raw_tp->btp = btp; in bpf_raw_tracepoint_open() 1532 err = bpf_probe_register(raw_tp->btp, prog); in bpf_raw_tracepoint_open() 1540 bpf_probe_unregister(raw_tp->btp, prog); in bpf_raw_tracepoint_open() 2301 struct bpf_raw_event_map *btp = raw_tp->btp; in bpf_task_fd_query() local 2306 btp->tp->name, 0, 0); in bpf_task_fd_query()
|