| /linux/fs/xfs/scrub/ |
| A D | bmap.c | 97 int whichfork; member 271 switch (info->whichfork) { in xchk_bmap_iextent_xref() 411 info->whichfork, 0); in xchk_bmapbt_rec() 441 int whichfork, in xchk_bmap_btree() argument 469 int whichfork; member 551 int whichfork, in xchk_bmap_check_ag_rmaps() argument 566 sbcri.whichfork = whichfork; in xchk_bmap_check_ag_rmaps() 580 int whichfork) in xchk_bmap_check_rmaps() argument 637 int whichfork) in xchk_bmap() argument 653 info.whichfork = whichfork; in xchk_bmap() [all …]
|
| A D | trace.h | 172 TP_PROTO(struct xfs_scrub *sc, int whichfork, 178 __field(int, whichfork) 187 __entry->whichfork = whichfork; 273 TP_ARGS(sc, whichfork, offset, ret_ip), 277 __field(int, whichfork) 285 __entry->whichfork = whichfork; 303 TP_ARGS(sc, whichfork, offset, ret_ip)) 374 __field(int, whichfork) 388 __entry->whichfork = cur->bc_ino.whichfork; 455 __field(int, whichfork) [all …]
|
| A 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,
|
| A D | common.c | 121 int whichfork, in __xchk_fblock_process_error() argument 141 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error() 151 int whichfork, in xchk_fblock_process_error() argument 155 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error() 162 int whichfork, in xchk_fblock_xref_process_error() argument 166 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error() 263 int whichfork, in xchk_fblock_set_corrupt() argument 267 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_set_corrupt() 274 int whichfork, in xchk_fblock_xref_set_corrupt() argument 278 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_xref_set_corrupt() [all …]
|
| A 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() 493 ds->dargs.whichfork = whichfork; in xchk_da_btree() 499 if (whichfork == XFS_ATTR_FORK) { in xchk_da_btree()
|
| A D | dabtree.h | 40 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
|
| /linux/fs/xfs/libxfs/ |
| A D | xfs_inode_fork.c | 34 int whichfork, in xfs_init_local_fork() argument 72 int whichfork, in xfs_iformat_local() argument 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 167 int whichfork) in xfs_iformat_btree() argument 356 int whichfork) in xfs_iroot_realloc() argument 482 int whichfork) in xfs_idata_realloc() argument 545 int whichfork) in xfs_iextents_copy() argument 586 int whichfork) in xfs_iflush_fork() argument 626 whichfork); in xfs_iflush_fork() [all …]
|
| A D | xfs_bmap.c | 218 int whichfork) in xfs_bmap_forkoff_reset() argument 748 int whichfork) in xfs_bmap_local_to_extents_empty() argument 771 int whichfork, in xfs_bmap_local_to_extents() argument 1120 int whichfork = cur->bc_ino.whichfork; in xfs_iread_bmbt_block() local 1166 int whichfork) in xfs_iread_extents() argument 1290 int whichfork, in xfs_bmap_last_extent() argument 1322 int whichfork) in xfs_bmap_isaeof() argument 1901 whichfork); in xfs_bmap_add_extent_delay_real() 4479 whichfork); in xfs_bmapi_write() 4608 whichfork); in xfs_bmapi_convert_delalloc() [all …]
|
| A D | xfs_bmap.h | 176 struct xfs_inode *ip, int whichfork); 179 xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork); 181 xfs_fileoff_t *last_block, int whichfork); 183 int whichfork); 196 int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork, 213 int xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork, 217 int xfs_bmapi_convert_delalloc(struct xfs_inode *ip, int whichfork, 220 struct xfs_inode *ip, int whichfork, 238 enum xfs_bmap_intent_type type, int whichfork, 246 static inline int xfs_bmap_fork_to_state(int whichfork) in xfs_bmap_fork_to_state() argument [all …]
|
| A D | xfs_da_btree.h | 68 int whichfork; /* data or attribute fork */ member 169 int level, struct xfs_buf **bpp, int whichfork); 191 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork); 194 int whichfork); 206 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork); 209 int whichfork, const struct xfs_buf_ops *ops); 211 unsigned int flags, int whichfork,
|
| A 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() 169 int whichfork, struct xfs_bmbt_irec *imap); 171 int whichfork, struct xfs_bmbt_irec *imap); 173 struct xfs_inode *ip, int whichfork, 183 uint64_t owner, int whichfork, xfs_fileoff_t startoff,
|
| A D | xfs_bmap_btree.c | 171 cur->bc_ino.ip, cur->bc_ino.whichfork); in xfs_bmbt_dup_cursor() 211 cur->bc_ino.whichfork); in xfs_bmbt_alloc_block() 308 cur->bc_ino.whichfork); in xfs_bmbt_get_minrecs() 326 cur->bc_ino.whichfork); in xfs_bmbt_get_maxrecs() 551 int whichfork) /* data or attr fork */ in xfs_bmbt_init_cursor() argument 553 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmbt_init_cursor() 555 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmbt_init_cursor() 558 mp->m_bm_maxlevels[whichfork], xfs_bmbt_cur_cache); in xfs_bmbt_init_cursor() 567 cur->bc_ino.forksize = XFS_IFORK_SIZE(ip, whichfork); in xfs_bmbt_init_cursor() 571 cur->bc_ino.whichfork = whichfork; in xfs_bmbt_init_cursor() [all …]
|
| A D | xfs_da_btree.c | 374 int whichfork) in xfs_da3_node_read() argument 391 int whichfork) in xfs_da3_node_read_mapped() argument 425 int whichfork) in xfs_da3_node_create() argument 2022 args->whichfork); in xfs_da3_path_shift() 2144 int w = args->whichfork; in xfs_da_grow_inode_int() 2286 w = args->whichfork; in xfs_da3_swap_lastblock() 2471 w = args->whichfork; in xfs_da_shrink_inode() 2501 int whichfork, in xfs_dabuf_map() argument 2587 int whichfork) in xfs_da_get_buf() argument 2623 int whichfork, in xfs_da_read_buf() argument [all …]
|
| A D | xfs_inode_buf.c | 337 int whichfork) in xfs_dinode_verify_fork() argument 339 uint32_t di_nextents = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_dinode_verify_fork() 341 switch (XFS_DFORK_FORMAT(dip, whichfork)) { in xfs_dinode_verify_fork() 346 if (whichfork == XFS_DATA_FORK) { in xfs_dinode_verify_fork() 350 XFS_DFORK_SIZE(dip, mp, whichfork)) in xfs_dinode_verify_fork() 357 if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork)) in xfs_dinode_verify_fork() 361 if (whichfork == XFS_ATTR_FORK) { in xfs_dinode_verify_fork()
|
| A D | xfs_inode_fork.h | 146 int whichfork); 151 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork, 230 int xfs_iext_count_may_overflow(struct xfs_inode *ip, int whichfork,
|
| A D | xfs_rmap.c | 2361 int whichfork, in xfs_rmap_finish_one() argument 2462 int whichfork) in xfs_rmap_update_is_needed() argument 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 2516 __xfs_rmap_add(tp, type, ip->i_ino, whichfork, PREV); in xfs_rmap_map_extent() 2524 int whichfork, in xfs_rmap_unmap_extent() argument 2535 __xfs_rmap_add(tp, type, ip->i_ino, whichfork, PREV); in xfs_rmap_unmap_extent() 2549 int whichfork, in xfs_rmap_convert_extent() argument [all …]
|
| A 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()
|
| A D | xfs_btree_staging.h | 53 int whichfork, const struct xfs_btree_ops *ops);
|
| A 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/fs/xfs/ |
| A D | xfs_aops.c | 227 int whichfork, in xfs_convert_blocks() argument 233 if (whichfork == XFS_COW_FORK) in xfs_convert_blocks() 245 error = xfs_bmapi_convert_delalloc(ip, whichfork, offset, in xfs_convert_blocks() 266 int whichfork; in xfs_map_blocks() local 301 whichfork = XFS_DATA_FORK; in xfs_map_blocks() 316 whichfork = XFS_COW_FORK; in xfs_map_blocks() 363 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap); in xfs_map_blocks() 366 error = xfs_convert_blocks(wpc, ip, whichfork, offset); in xfs_map_blocks() 375 if (error == -EAGAIN && whichfork == XFS_COW_FORK && !retries++) in xfs_map_blocks() 386 if (whichfork != XFS_COW_FORK && cow_fsb != NULLFILEOFF) { in xfs_map_blocks() [all …]
|
| A D | xfs_bmap_item.c | 239 int whichfork, in xfs_trans_log_finish_bmap_update() argument 247 error = xfs_bmap_finish_one(tp, ip, type, whichfork, startoff, in xfs_trans_log_finish_bmap_update() 283 int whichfork, in xfs_trans_set_bmap_flags() argument 297 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_bmap_flags() 472 int whichfork; in xfs_bui_item_recover() local 485 whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_item_recover() 508 error = xfs_iext_count_may_overflow(ip, whichfork, iext_delta); in xfs_bui_item_recover() 514 whichfork, bmap->me_startoff, bmap->me_startblock, in xfs_bui_item_recover()
|
| A 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() 517 int whichfork; in xfs_rui_item_recover() local 545 whichfork = (rmap->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ? in xfs_rui_item_recover() 578 rmap->me_owner, whichfork, in xfs_rui_item_recover()
|
| A D | xfs_bmap_util.h | 52 int whichfork, struct xfs_bmbt_irec *rec, 76 int whichfork, xfs_extnum_t *nextents,
|
| A D | xfs_bmap_util.c | 254 int whichfork, in xfs_bmap_count_blocks() argument 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() 412 int whichfork, lock, error = 0; in xfs_getbmap() local 437 whichfork = XFS_ATTR_FORK; in xfs_getbmap() 439 whichfork = XFS_COW_FORK; in xfs_getbmap() 441 whichfork = XFS_DATA_FORK; in xfs_getbmap() 442 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_getbmap() 445 switch (whichfork) { in xfs_getbmap() 516 error = xfs_iread_extents(NULL, ip, whichfork); in xfs_getbmap() [all …]
|
| A D | xfs_inode.h | 458 int whichfork, in xfs_itruncate_extents() argument 461 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|