/linux-6.6.21/fs/xfs/scrub/ |
D | bmap.c | 113 int whichfork; member 130 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap() 139 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap() 160 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap() 188 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 193 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 198 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 203 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 208 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 220 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() [all …]
|
D | common.h | 39 bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork, 45 int whichfork, xfs_fileoff_t offset, int *error); 55 void xchk_fblock_set_corrupt(struct xfs_scrub *sc, int whichfork, 63 int whichfork, xfs_fileoff_t offset); 66 void xchk_fblock_set_warning(struct xfs_scrub *sc, int whichfork,
|
D | dabtree.c | 53 trace_xchk_file_op_error(sc, ds->dargs.whichfork, in xchk_da_process_error() 75 trace_xchk_fblock_error(sc, ds->dargs.whichfork, in xchk_da_set_corrupt() 344 XFS_DABUF_MAP_HOLE_OK, &blk->bp, dargs->whichfork, in xchk_da_btree_block() 356 if (ds->dargs.whichfork == XFS_DATA_FORK && level == 0 && in xchk_da_btree_block() 473 int whichfork, in xchk_da_btree() argument 486 if (!xfs_ifork_has_extents(xfs_ifork_ptr(sc->ip, whichfork))) in xchk_da_btree() 494 ds->dargs.whichfork = whichfork; in xchk_da_btree() 500 if (whichfork == XFS_ATTR_FORK) { in xchk_da_btree()
|
D | common.c | 124 int whichfork, in __xchk_fblock_process_error() argument 145 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error() 155 int whichfork, in xchk_fblock_process_error() argument 159 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error() 166 int whichfork, in xchk_fblock_xref_process_error() argument 170 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error() 267 int whichfork, in xchk_fblock_set_corrupt() argument 271 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_set_corrupt() 278 int whichfork, in xchk_fblock_xref_set_corrupt() argument 282 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_xref_set_corrupt() [all …]
|
D | trace.h | 214 TP_PROTO(struct xfs_scrub *sc, int whichfork, 216 TP_ARGS(sc, whichfork, offset, error, ret_ip), 220 __field(int, whichfork) 229 __entry->whichfork = whichfork; 238 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS), 313 TP_PROTO(struct xfs_scrub *sc, int whichfork, 315 TP_ARGS(sc, whichfork, offset, ret_ip), 319 __field(int, whichfork) 327 __entry->whichfork = whichfork; 335 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS), [all …]
|
D | dabtree.h | 40 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
|
/linux-6.6.21/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 34 int whichfork, in xfs_init_local_fork() argument 38 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_init_local_fork() 71 int whichfork, in xfs_iformat_local() argument 79 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local() 83 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local() 90 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local() 102 int whichfork) in xfs_iformat_extents() argument 105 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_iformat_extents() 106 int state = xfs_bmap_fork_to_state(whichfork); in xfs_iformat_extents() 107 xfs_extnum_t nex = xfs_dfork_nextents(dip, whichfork); in xfs_iformat_extents() [all …]
|
D | xfs_bmap.c | 53 int whichfork) /* data or attr fork */ in xfs_bmap_compute_maxlevels() argument 76 whichfork); in xfs_bmap_compute_maxlevels() 77 if (whichfork == XFS_DATA_FORK) in xfs_bmap_compute_maxlevels() 92 mp->m_bm_maxlevels[whichfork] = level; in xfs_bmap_compute_maxlevels() 93 ASSERT(mp->m_bm_maxlevels[whichfork] <= xfs_bmbt_maxlevels_ondisk()); in xfs_bmap_compute_maxlevels() 129 static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork) in xfs_bmap_needs_btree() argument 131 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_needs_btree() 133 return whichfork != XFS_COW_FORK && in xfs_bmap_needs_btree() 135 ifp->if_nextents > XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_needs_btree() 141 static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork) in xfs_bmap_wants_extents() argument [all …]
|
D | xfs_bmap.h | 179 struct xfs_inode *ip, int whichfork); 180 void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork); 182 xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork); 184 xfs_fileoff_t *last_block, int whichfork); 186 int whichfork); 199 int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork, 216 int xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork, 220 int xfs_bmapi_convert_delalloc(struct xfs_inode *ip, int whichfork, 223 struct xfs_inode *ip, int whichfork, 254 static inline uint32_t xfs_bmap_fork_to_state(int whichfork) in xfs_bmap_fork_to_state() argument [all …]
|
D | xfs_da_btree.h | 69 int whichfork; /* data or attribute fork */ member 176 int level, struct xfs_buf **bpp, int whichfork); 198 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork); 201 int whichfork); 213 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork); 216 int whichfork, const struct xfs_buf_ops *ops); 218 unsigned int flags, int whichfork,
|
D | xfs_inode_fork.h | 105 int whichfork) in xfs_iext_max_nextents() argument 107 switch (whichfork) { in xfs_iext_max_nextents() 148 int whichfork) in xfs_dfork_nextents() argument 150 switch (whichfork) { in xfs_dfork_nextents() 174 int whichfork); 179 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork, 258 int xfs_iext_count_may_overflow(struct xfs_inode *ip, int whichfork,
|
D | xfs_bmap_btree.c | 172 cur->bc_ino.ip, cur->bc_ino.whichfork); in xfs_bmbt_dup_cursor() 211 cur->bc_ino.whichfork); in xfs_bmbt_alloc_block() 225 cur->bc_ino.whichfork); in xfs_bmbt_alloc_block() 273 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_ino.whichfork); in xfs_bmbt_free_block() 294 cur->bc_ino.whichfork); in xfs_bmbt_get_minrecs() 312 cur->bc_ino.whichfork); in xfs_bmbt_get_maxrecs() 554 int whichfork) /* data or attr fork */ in xfs_bmbt_init_cursor() argument 556 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmbt_init_cursor() 558 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmbt_init_cursor() 561 mp->m_bm_maxlevels[whichfork], xfs_bmbt_cur_cache); in xfs_bmbt_init_cursor() [all …]
|
D | xfs_rmap.h | 15 int whichfork) in xfs_rmap_ino_bmbt_owner() argument 20 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_bmbt_owner() 28 int whichfork, in xfs_rmap_ino_owner() argument 34 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_owner() 174 int whichfork, struct xfs_bmbt_irec *imap); 176 int whichfork, struct xfs_bmbt_irec *imap); 178 struct xfs_inode *ip, int whichfork,
|
D | xfs_da_btree.c | 131 static inline int xfs_dabuf_nfsb(struct xfs_mount *mp, int whichfork) in xfs_dabuf_nfsb() argument 133 if (whichfork == XFS_DATA_FORK) in xfs_dabuf_nfsb() 386 int whichfork) in xfs_da3_node_read() argument 390 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, in xfs_da3_node_read() 403 int whichfork) in xfs_da3_node_read_mapped() argument 409 XFS_FSB_TO_BB(mp, xfs_dabuf_nfsb(mp, whichfork)), 0, in xfs_da3_node_read_mapped() 414 if (whichfork == XFS_ATTR_FORK) in xfs_da3_node_read_mapped() 437 int whichfork) in xfs_da3_node_create() argument 450 error = xfs_da_get_buf(tp, dp, blkno, &bp, whichfork); in xfs_da3_node_create() 680 error = xfs_da_get_buf(tp, dp, blkno, &bp, args->whichfork); in xfs_da3_root_split() [all …]
|
D | xfs_inode_buf.c | 356 int whichfork) in xfs_dinode_verify_fork() argument 361 uint32_t fork_size = XFS_DFORK_SIZE(dip, mp, whichfork); in xfs_dinode_verify_fork() 362 uint32_t fork_format = XFS_DFORK_FORMAT(dip, whichfork); in xfs_dinode_verify_fork() 364 di_nextents = xfs_dfork_nextents(dip, whichfork); in xfs_dinode_verify_fork() 373 if (whichfork == XFS_DATA_FORK) { in xfs_dinode_verify_fork() 390 if (S_ISREG(mode) && whichfork == XFS_DATA_FORK) in xfs_dinode_verify_fork() 396 if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork)) in xfs_dinode_verify_fork() 402 whichfork); in xfs_dinode_verify_fork()
|
D | xfs_rmap.c | 2534 int whichfork) in xfs_rmap_update_is_needed() argument 2536 return xfs_has_rmapbt(mp) && whichfork != XFS_COW_FORK; in xfs_rmap_update_is_needed() 2548 int whichfork, in __xfs_rmap_add() argument 2557 owner, whichfork, in __xfs_rmap_add() 2566 ri->ri_whichfork = whichfork; in __xfs_rmap_add() 2578 int whichfork, in xfs_rmap_map_extent() argument 2583 if (!xfs_rmap_update_is_needed(tp->t_mountp, whichfork)) in xfs_rmap_map_extent() 2586 if (whichfork != XFS_ATTR_FORK && xfs_is_reflink_inode(ip)) in xfs_rmap_map_extent() 2589 __xfs_rmap_add(tp, type, ip->i_ino, whichfork, PREV); in xfs_rmap_map_extent() 2597 int whichfork, in xfs_rmap_unmap_extent() argument [all …]
|
D | xfs_btree_staging.h | 53 int whichfork, const struct xfs_btree_ops *ops);
|
D | xfs_dir2.c | 288 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname() 382 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup() 456 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename() 517 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace()
|
D | xfs_bmap_btree.h | 104 int whichfork, xfs_ino_t new_owner,
|
D | xfs_btree_staging.c | 249 int whichfork, in xfs_btree_commit_ifakeroot() argument 259 cur->bc_ino.whichfork = whichfork; in xfs_btree_commit_ifakeroot()
|
/linux-6.6.21/fs/xfs/ |
D | xfs_aops.c | 248 int whichfork, in xfs_convert_blocks() argument 254 if (whichfork == XFS_COW_FORK) in xfs_convert_blocks() 266 error = xfs_bmapi_convert_delalloc(ip, whichfork, offset, in xfs_convert_blocks() 287 int whichfork; in xfs_map_blocks() local 324 whichfork = XFS_DATA_FORK; in xfs_map_blocks() 339 whichfork = XFS_COW_FORK; in xfs_map_blocks() 386 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap); in xfs_map_blocks() 389 error = xfs_convert_blocks(wpc, ip, whichfork, offset); in xfs_map_blocks() 398 if (error == -EAGAIN && whichfork == XFS_COW_FORK && !retries++) in xfs_map_blocks() 409 if (whichfork != XFS_COW_FORK && cow_fsb != NULLFILEOFF) { in xfs_map_blocks() [all …]
|
D | xfs_inode.h | 110 int whichfork) in xfs_ifork_ptr() argument 112 switch (whichfork) { in xfs_ifork_ptr() 150 int whichfork) in xfs_inode_fork_size() argument 152 switch (whichfork) { in xfs_inode_fork_size() 556 int whichfork, in xfs_itruncate_extents() argument 559 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|
D | xfs_bmap_util.h | 52 int whichfork, struct xfs_bmbt_irec *rec, 76 int whichfork, xfs_extnum_t *nextents,
|
D | xfs_bmap_util.c | 254 int whichfork, in xfs_bmap_count_blocks() argument 259 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_count_blocks() 272 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_count_blocks() 276 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_count_blocks() 410 int whichfork, lock, error = 0; in xfs_getbmap() local 435 whichfork = XFS_ATTR_FORK; in xfs_getbmap() 437 whichfork = XFS_COW_FORK; in xfs_getbmap() 439 whichfork = XFS_DATA_FORK; in xfs_getbmap() 442 switch (whichfork) { in xfs_getbmap() 455 if (!xfs_ifork_ptr(ip, whichfork)) in xfs_getbmap() [all …]
|
D | xfs_trace.h | 1445 int whichfork, struct xfs_bmbt_irec *irec), 1446 TP_ARGS(ip, offset, count, whichfork, irec), 1453 __field(int, whichfork) 1464 __entry->whichfork = whichfork; 1476 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS), 1485 int whichfork, struct xfs_bmbt_irec *irec), \ 1486 TP_ARGS(ip, offset, count, whichfork, irec)) 2614 int whichfork, 2618 TP_ARGS(mp, agno, op, agbno, ino, whichfork, offset, len, state), 2624 __field(int, whichfork) [all …]
|