/fs/xfs/scrub/ |
D | bmap.c | 97 int whichfork; member 114 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap() 123 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() 179 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_xref_rmap() 192 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 200 if (info->whichfork != XFS_COW_FORK) { in xchk_bmap_xref_rmap() 206 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap() 210 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() 223 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap() [all …]
|
D | trace.h | 158 TP_PROTO(struct xfs_scrub *sc, int whichfork, 160 TP_ARGS(sc, whichfork, offset, error, ret_ip), 164 __field(int, whichfork) 173 __entry->whichfork = whichfork; 182 __entry->whichfork, 265 TP_PROTO(struct xfs_scrub *sc, int whichfork, 267 TP_ARGS(sc, whichfork, offset, ret_ip), 271 __field(int, whichfork) 279 __entry->whichfork = whichfork; 287 __entry->whichfork, [all …]
|
D | common.c | 119 int whichfork, in __xchk_fblock_process_error() argument 139 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error() 149 int whichfork, in xchk_fblock_process_error() argument 153 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error() 160 int whichfork, in xchk_fblock_xref_process_error() argument 164 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error() 261 int whichfork, in xchk_fblock_set_corrupt() argument 265 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_set_corrupt() 272 int whichfork, in xchk_fblock_xref_set_corrupt() argument 276 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_xref_set_corrupt() [all …]
|
D | common.h | 37 bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork, 43 int whichfork, xfs_fileoff_t offset, int *error); 53 void xchk_fblock_set_corrupt(struct xfs_scrub *sc, int whichfork, 61 int whichfork, xfs_fileoff_t offset); 64 void xchk_fblock_set_warning(struct xfs_scrub *sc, int whichfork,
|
D | dabtree.c | 52 trace_xchk_file_op_error(sc, ds->dargs.whichfork, in xchk_da_process_error() 74 trace_xchk_fblock_error(sc, ds->dargs.whichfork, in xchk_da_set_corrupt() 343 XFS_DABUF_MAP_HOLE_OK, &blk->bp, dargs->whichfork, in xchk_da_btree_block() 355 if (ds->dargs.whichfork == XFS_DATA_FORK && level == 0 && in xchk_da_btree_block() 472 int whichfork, in xchk_da_btree() argument 485 if (!xfs_ifork_has_extents(XFS_IFORK_PTR(sc->ip, whichfork))) in xchk_da_btree() 490 ds.dargs.whichfork = whichfork; in xchk_da_btree() 496 if (whichfork == XFS_ATTR_FORK) { in xchk_da_btree()
|
D | dabtree.h | 40 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
|
/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 32 int whichfork, in xfs_init_local_fork() argument 36 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_init_local_fork() 72 int whichfork, in xfs_iformat_local() argument 80 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local() 84 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local() 91 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local() 103 int whichfork) in xfs_iformat_extents() argument 106 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iformat_extents() 107 int state = xfs_bmap_fork_to_state(whichfork); in xfs_iformat_extents() 108 int 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 77 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_compute_maxlevels() 94 mp->m_bm_maxlevels[whichfork] = level; in xfs_bmap_compute_maxlevels() 121 static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork) in xfs_bmap_needs_btree() argument 123 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_needs_btree() 125 return whichfork != XFS_COW_FORK && in xfs_bmap_needs_btree() 127 ifp->if_nextents > XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_needs_btree() 133 static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork) in xfs_bmap_wants_extents() argument 135 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_wants_extents() 137 return whichfork != XFS_COW_FORK && in xfs_bmap_wants_extents() [all …]
|
D | xfs_bmap.h | 191 struct xfs_inode *ip, int whichfork); 195 void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork); 197 xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork); 199 xfs_fileoff_t *last_block, int whichfork); 201 int whichfork); 202 int xfs_bmap_one_block(struct xfs_inode *ip, int whichfork); 215 int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork, 232 int xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork, 236 int xfs_bmapi_convert_delalloc(struct xfs_inode *ip, int whichfork, 239 struct xfs_inode *ip, int whichfork, [all …]
|
D | xfs_da_btree.h | 69 int whichfork; /* data or attribute fork */ member 170 int level, struct xfs_buf **bpp, int whichfork); 192 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork); 195 int whichfork); 207 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork); 210 int whichfork, const struct xfs_buf_ops *ops); 212 unsigned int flags, int whichfork,
|
D | xfs_rmap.h | 13 int whichfork) in xfs_rmap_ino_bmbt_owner() argument 18 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_bmbt_owner() 26 int whichfork, in xfs_rmap_ino_owner() argument 32 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_owner() 166 int whichfork, struct xfs_bmbt_irec *imap); 168 int whichfork, struct xfs_bmbt_irec *imap); 170 struct xfs_inode *ip, int whichfork, 180 uint64_t owner, int whichfork, xfs_fileoff_t startoff,
|
D | xfs_bmap_btree.c | 169 cur->bc_ino.ip, cur->bc_ino.whichfork); in xfs_bmbt_dup_cursor() 209 cur->bc_ino.whichfork); in xfs_bmbt_alloc_block() 288 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_ino.whichfork); in xfs_bmbt_free_block() 306 cur->bc_ino.whichfork); in xfs_bmbt_get_minrecs() 324 cur->bc_ino.whichfork); in xfs_bmbt_get_maxrecs() 549 int whichfork) /* data or attr fork */ in xfs_bmbt_init_cursor() argument 551 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmbt_init_cursor() 553 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmbt_init_cursor() 569 cur->bc_ino.forksize = XFS_IFORK_SIZE(ip, whichfork); in xfs_bmbt_init_cursor() 573 cur->bc_ino.whichfork = whichfork; in xfs_bmbt_init_cursor() [all …]
|
D | xfs_da_btree.c | 119 static inline int xfs_dabuf_nfsb(struct xfs_mount *mp, int whichfork) in xfs_dabuf_nfsb() argument 121 if (whichfork == XFS_DATA_FORK) in xfs_dabuf_nfsb() 374 int whichfork) in xfs_da3_node_read() argument 378 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, in xfs_da3_node_read() 391 int whichfork) in xfs_da3_node_read_mapped() argument 397 XFS_FSB_TO_BB(mp, xfs_dabuf_nfsb(mp, whichfork)), 0, in xfs_da3_node_read_mapped() 402 if (whichfork == XFS_ATTR_FORK) in xfs_da3_node_read_mapped() 425 int whichfork) in xfs_da3_node_create() argument 438 error = xfs_da_get_buf(tp, dp, blkno, &bp, whichfork); in xfs_da3_node_create() 665 error = xfs_da_get_buf(tp, dp, blkno, &bp, args->whichfork); in xfs_da3_root_split() [all …]
|
D | xfs_inode_buf.c | 358 int whichfork) in xfs_dinode_verify_fork() argument 360 uint32_t di_nextents = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_dinode_verify_fork() 362 uint32_t fork_size = XFS_DFORK_SIZE(dip, mp, whichfork); in xfs_dinode_verify_fork() 363 uint32_t fork_format = XFS_DFORK_FORMAT(dip, whichfork); in xfs_dinode_verify_fork() 372 if (whichfork == XFS_DATA_FORK) { in xfs_dinode_verify_fork() 389 if (S_ISREG(mode) && whichfork == XFS_DATA_FORK) in xfs_dinode_verify_fork() 395 if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork)) in xfs_dinode_verify_fork() 399 if (whichfork == XFS_ATTR_FORK) { in xfs_dinode_verify_fork()
|
D | xfs_rmap.c | 2357 int whichfork, in xfs_rmap_finish_one() argument 2377 trace_xfs_rmap_deferred(mp, agno, type, bno, owner, whichfork, in xfs_rmap_finish_one() 2414 xfs_rmap_ino_owner(&oinfo, owner, whichfork, startoff); in xfs_rmap_finish_one() 2462 int whichfork) in xfs_rmap_update_is_needed() argument 2464 return xfs_sb_version_hasrmapbt(&mp->m_sb) && whichfork != XFS_COW_FORK; in xfs_rmap_update_is_needed() 2476 int whichfork, in __xfs_rmap_add() argument 2485 owner, whichfork, in __xfs_rmap_add() 2494 ri->ri_whichfork = whichfork; in __xfs_rmap_add() 2505 int whichfork, in xfs_rmap_map_extent() argument 2510 if (!xfs_rmap_update_is_needed(tp->t_mountp, whichfork)) in xfs_rmap_map_extent() [all …]
|
D | xfs_inode_fork.h | 91 int whichfork); 96 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork,
|
D | xfs_dir2.c | 275 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname() 369 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup() 443 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename() 504 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace()
|
D | xfs_btree_staging.h | 53 int whichfork, const struct xfs_btree_ops *ops);
|
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()
|
/fs/xfs/ |
D | xfs_aops.c | 289 int whichfork, in xfs_convert_blocks() argument 295 if (whichfork == XFS_COW_FORK) in xfs_convert_blocks() 307 error = xfs_bmapi_convert_delalloc(ip, whichfork, offset, in xfs_convert_blocks() 328 int whichfork; in xfs_map_blocks() local 363 whichfork = XFS_DATA_FORK; in xfs_map_blocks() 379 whichfork = XFS_COW_FORK; in xfs_map_blocks() 426 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap); in xfs_map_blocks() 429 error = xfs_convert_blocks(wpc, ip, whichfork, offset); in xfs_map_blocks() 438 if (error == -EAGAIN && whichfork == XFS_COW_FORK && !retries++) in xfs_map_blocks() 449 if (whichfork != XFS_COW_FORK && cow_fsb != NULLFILEOFF) { in xfs_map_blocks() [all …]
|
D | xfs_rmap_item.c | 262 int whichfork, in xfs_trans_set_rmap_flags() argument 268 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_rmap_flags() 311 int whichfork, in xfs_trans_log_finish_rmap_update() argument 320 error = xfs_rmap_finish_one(tp, type, owner, whichfork, startoff, in xfs_trans_log_finish_rmap_update() 483 int whichfork; in xfs_rui_item_recover() local 528 whichfork = (rmap->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ? in xfs_rui_item_recover() 561 rmap->me_owner, whichfork, in xfs_rui_item_recover()
|
D | xfs_bmap_item.c | 240 int whichfork, in xfs_trans_log_finish_bmap_update() argument 248 error = xfs_bmap_finish_one(tp, ip, type, whichfork, startoff, in xfs_trans_log_finish_bmap_update() 284 int whichfork, in xfs_trans_set_bmap_flags() argument 298 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_bmap_flags() 441 int whichfork; in xfs_bui_item_recover() local 459 whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_item_recover() 502 whichfork, bmap->me_startoff, bmap->me_startblock, in xfs_bui_item_recover()
|
D | xfs_bmap_util.c | 210 int whichfork, in xfs_bmap_count_blocks() argument 215 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_count_blocks() 229 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_count_blocks() 234 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_count_blocks() 370 int whichfork, lock, error = 0; in xfs_getbmap() local 395 whichfork = XFS_ATTR_FORK; in xfs_getbmap() 397 whichfork = XFS_COW_FORK; in xfs_getbmap() 399 whichfork = XFS_DATA_FORK; in xfs_getbmap() 400 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_getbmap() 403 switch (whichfork) { in xfs_getbmap() [all …]
|
D | xfs_bmap_util.h | 52 int whichfork, struct xfs_bmbt_irec *rec, 76 int whichfork, xfs_extnum_t *nextents,
|
D | xfs_inode.h | 418 int whichfork, in xfs_itruncate_extents() argument 421 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|