/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() 359 &blk->bp, dargs->whichfork, in xchk_da_btree_block() 371 if (ds->dargs.whichfork == XFS_DATA_FORK && level == 0 && in xchk_da_btree_block() 474 int whichfork, in xchk_da_btree() argument 488 if (XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_EXTENTS && in xchk_da_btree() 489 XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_BTREE) in xchk_da_btree() 494 ds.dargs.whichfork = whichfork; in xchk_da_btree() 502 if (whichfork == XFS_ATTR_FORK) { in xchk_da_btree()
|
D | dabtree.h | 41 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
|
/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 136 int whichfork, in xfs_init_local_fork() argument 140 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_init_local_fork() 176 int whichfork, in xfs_iformat_local() argument 184 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local() 188 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local() 195 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local() 207 int whichfork) in xfs_iformat_extents() argument 210 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iformat_extents() 211 int state = xfs_bmap_fork_to_state(whichfork); in xfs_iformat_extents() 212 int nex = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_iformat_extents() [all …]
|
D | xfs_bmap.c | 52 int whichfork) /* data or attr fork */ in xfs_bmap_compute_maxlevels() argument 76 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_compute_maxlevels() 93 mp->m_bm_maxlevels[whichfork] = level; in xfs_bmap_compute_maxlevels() 120 static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork) in xfs_bmap_needs_btree() argument 122 return whichfork != XFS_COW_FORK && in xfs_bmap_needs_btree() 123 XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_EXTENTS && in xfs_bmap_needs_btree() 124 XFS_IFORK_NEXTENTS(ip, whichfork) > in xfs_bmap_needs_btree() 125 XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_needs_btree() 131 static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork) in xfs_bmap_wants_extents() argument 133 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, 240 struct xfs_inode *ip, int whichfork, [all …]
|
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_private.b.ip, cur->bc_private.b.whichfork); in xfs_bmbt_dup_cursor() 209 cur->bc_private.b.whichfork); in xfs_bmbt_alloc_block() 288 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_private.b.whichfork); in xfs_bmbt_free_block() 306 cur->bc_private.b.whichfork); in xfs_bmbt_get_minrecs() 324 cur->bc_private.b.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_private.b.forksize = XFS_IFORK_SIZE(ip, whichfork); in xfs_bmbt_init_cursor() 573 cur->bc_private.b.whichfork = whichfork; in xfs_bmbt_init_cursor() [all …]
|
D | xfs_da_btree.h | 61 int whichfork; /* data or attribute fork */ member 168 int level, struct xfs_buf **bpp, int whichfork); 201 struct xfs_buf **bp, int whichfork); 204 struct xfs_buf **bpp, int whichfork, 207 xfs_daddr_t mapped_bno, int whichfork,
|
D | xfs_da_btree.c | 333 int whichfork) in xfs_da3_node_create() argument 346 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create() 573 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); in xfs_da3_root_split() 636 (args->whichfork == XFS_DATA_FORK) ? args->geo->leafblk : 0, in xfs_da3_root_split() 637 level + 1, &bp, args->whichfork); in xfs_da3_root_split() 696 useextra = state->extravalid && state->args->whichfork == XFS_ATTR_FORK; in xfs_da3_node_split() 711 &newblk->bp, state->args->whichfork); in xfs_da3_node_split() 931 if (state->args->whichfork == XFS_DATA_FORK) in xfs_da3_node_add() 1115 args->whichfork); in xfs_da3_root_join() 1230 blkno, -1, &bp, state->args->whichfork); in xfs_da3_node_toosmall() [all …]
|
D | xfs_inode_buf.c | 366 int whichfork) in xfs_dinode_verify_fork() argument 368 uint32_t di_nextents = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_dinode_verify_fork() 370 switch (XFS_DFORK_FORMAT(dip, whichfork)) { in xfs_dinode_verify_fork() 375 if (whichfork == XFS_DATA_FORK) { in xfs_dinode_verify_fork() 379 XFS_DFORK_SIZE(dip, mp, whichfork)) in xfs_dinode_verify_fork() 386 if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork)) in xfs_dinode_verify_fork() 390 if (whichfork == XFS_ATTR_FORK) { in xfs_dinode_verify_fork()
|
D | xfs_rmap.c | 2156 int whichfork, in xfs_rmap_finish_one() argument 2176 trace_xfs_rmap_deferred(mp, agno, type, bno, owner, whichfork, in xfs_rmap_finish_one() 2213 xfs_rmap_ino_owner(&oinfo, owner, whichfork, startoff); in xfs_rmap_finish_one() 2261 int whichfork) in xfs_rmap_update_is_needed() argument 2263 return xfs_sb_version_hasrmapbt(&mp->m_sb) && whichfork != XFS_COW_FORK; in xfs_rmap_update_is_needed() 2275 int whichfork, in __xfs_rmap_add() argument 2284 owner, whichfork, in __xfs_rmap_add() 2293 ri->ri_whichfork = whichfork; in __xfs_rmap_add() 2304 int whichfork, in xfs_rmap_map_extent() argument 2307 if (!xfs_rmap_update_is_needed(tp->t_mountp, whichfork)) in xfs_rmap_map_extent() [all …]
|
D | xfs_inode_fork.h | 92 int whichfork); 97 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork,
|
D | xfs_dir2.c | 269 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname() 363 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup() 437 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename() 498 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace()
|
D | xfs_btree.c | 240 cur->bc_private.b.whichfork, cur->bc_btnum, in xfs_btree_check_ptr() 651 ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_btree_get_iroot() 1447 xfs_ilog_fbroot(cur->bc_private.b.whichfork)); in xfs_btree_log_keys() 1490 xfs_ilog_fbroot(cur->bc_private.b.whichfork)); in xfs_btree_log_ptrs() 1559 xfs_ilog_fbroot(cur->bc_private.b.whichfork)); in xfs_btree_log_block() 2990 cur->bc_private.b.whichfork); in xfs_btree_new_iroot() 3003 XFS_ILOG_CORE | xfs_ilog_fbroot(cur->bc_private.b.whichfork); in xfs_btree_new_iroot() 3159 xfs_iroot_realloc(ip, 1, cur->bc_private.b.whichfork); in xfs_btree_make_block_unfull() 3502 int whichfork = cur->bc_private.b.whichfork; in xfs_btree_kill_iroot() local 3504 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_btree_kill_iroot() [all …]
|
D | xfs_bmap_btree.h | 103 int whichfork, xfs_ino_t new_owner,
|
/fs/xfs/ |
D | xfs_iomap.c | 395 int whichfork, in xfs_iomap_prealloc_size() argument 401 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iomap_prealloc_size() 543 int whichfork = XFS_DATA_FORK; in xfs_file_iomap_begin_delay() local 603 whichfork = XFS_COW_FORK; in xfs_file_iomap_begin_delay() 639 whichfork = XFS_COW_FORK; in xfs_file_iomap_begin_delay() 655 whichfork = XFS_COW_FORK; in xfs_file_iomap_begin_delay() 663 prealloc_blocks = xfs_iomap_prealloc_size(ip, whichfork, offset, in xfs_file_iomap_begin_delay() 685 error = xfs_bmapi_reserve_delalloc(ip, whichfork, offset_fsb, in xfs_file_iomap_begin_delay() 687 whichfork == XFS_DATA_FORK ? &imap : &cmap, in xfs_file_iomap_begin_delay() 688 whichfork == XFS_DATA_FORK ? &icur : &ccur, in xfs_file_iomap_begin_delay() [all …]
|
D | xfs_bmap_item.c | 215 int whichfork, in xfs_trans_log_finish_bmap_update() argument 223 error = xfs_bmap_finish_one(tp, ip, type, whichfork, startoff, in xfs_trans_log_finish_bmap_update() 259 int whichfork, in xfs_trans_set_bmap_flags() argument 273 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_bmap_flags() 411 int whichfork; in xfs_bui_recover() local 438 whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_recover() 488 whichfork, bmap->me_startoff, bmap->me_startblock, in xfs_bui_recover()
|
D | xfs_bmap_util.h | 34 int whichfork, int *eof); 54 int whichfork, struct xfs_bmbt_irec *rec, 80 int whichfork, xfs_extnum_t *nextents,
|
D | xfs_rmap_item.c | 231 int whichfork, in xfs_trans_set_rmap_flags() argument 237 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_rmap_flags() 280 int whichfork, in xfs_trans_log_finish_rmap_update() argument 289 error = xfs_rmap_finish_one(tp, type, owner, whichfork, startoff, in xfs_trans_log_finish_rmap_update() 464 int whichfork; in xfs_rui_recover() local 520 whichfork = (rmap->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ? in xfs_rui_recover() 553 rmap->me_owner, whichfork, in xfs_rui_recover()
|
D | xfs_bmap_util.c | 190 int whichfork, in xfs_bmap_eof() argument 196 error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, eof); in xfs_bmap_eof() 339 int whichfork, in xfs_bmap_count_blocks() argument 355 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_count_blocks() 359 switch (XFS_IFORK_FORMAT(ip, whichfork)) { in xfs_bmap_count_blocks() 365 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_count_blocks() 509 int whichfork, lock, error = 0; in xfs_getbmap() local 534 whichfork = XFS_ATTR_FORK; in xfs_getbmap() 536 whichfork = XFS_COW_FORK; in xfs_getbmap() 538 whichfork = XFS_DATA_FORK; in xfs_getbmap() [all …]
|
D | xfs_inode.h | 444 int whichfork, in xfs_itruncate_extents() argument 447 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|