/linux-master/fs/xfs/scrub/ |
H A D | bmap.c | 137 int whichfork; member in struct:xchk_bmap_info 154 if (info->whichfork == XFS_ATTR_FORK) 163 if (info->whichfork == XFS_COW_FORK) 184 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, 212 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, 217 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, 222 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, 227 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, 232 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, 244 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, 522 xchk_bmap_btree( struct xfs_scrub *sc, int whichfork, struct xchk_bmap_info *info) argument 552 int whichfork; member in struct:xchk_bmap_check_rmap_info 632 xchk_bmap_check_ag_rmaps( struct xfs_scrub *sc, int whichfork, struct xfs_perag *pag) argument 760 xchk_bmap_check_rmaps( struct xfs_scrub *sc, int whichfork) argument 911 xchk_bmap( struct xfs_scrub *sc, int whichfork) argument [all...] |
H A D | bmap_repair.c | 85 int whichfork; member in struct:xrep_bmap 154 fa = xfs_bmap_validate_extent(sc->ip, rb->whichfork, &irec); 160 trace_xrep_bmap_found(sc->ip, rb->whichfork, &irec); 261 if (rb->whichfork == XFS_DATA_FORK && 264 if (rb->whichfork == XFS_ATTR_FORK && 373 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, rb->whichfork); 380 if (rb->whichfork == XFS_ATTR_FORK || ip->i_delayed_blks == 0) 389 trace_xrep_bmap_found(ip, rb->whichfork, &irec); 549 return xrep_ino_ensure_extent_count(rb->sc, rb->whichfork, 633 xfs_rmap_ino_bmbt_owner(&oinfo, sc->ip->i_ino, rb->whichfork); 712 xrep_bmap_check_inputs( struct xfs_scrub *sc, int whichfork) argument 768 xrep_bmap_init_reflink_scan( struct xfs_scrub *sc, int whichfork) argument 797 xrep_bmap( struct xfs_scrub *sc, int whichfork, bool allow_unwritten) argument [all...] |
H A D | dabtree.h | 40 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
|
H A D | common.h | 40 bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork, 46 int whichfork, xfs_fileoff_t offset, int *error); 56 void xchk_fblock_set_corrupt(struct xfs_scrub *sc, int whichfork, 68 int whichfork, xfs_fileoff_t offset); 71 void xchk_fblock_set_warning(struct xfs_scrub *sc, int whichfork,
|
H A D | newbt.h | 65 int whichfork, const struct xfs_owner_info *oinfo);
|
H A D | dabtree.c | 53 trace_xchk_file_op_error(sc, ds->dargs.whichfork, 75 trace_xchk_fblock_error(sc, ds->dargs.whichfork, 344 XFS_DABUF_MAP_HOLE_OK, &blk->bp, dargs->whichfork, 356 if (ds->dargs.whichfork == XFS_DATA_FORK && level == 0 && 473 int whichfork, 486 if (!xfs_ifork_has_extents(xfs_ifork_ptr(sc->ip, whichfork))) 494 ds->dargs.whichfork = whichfork; 500 if (whichfork == XFS_ATTR_FORK) { 471 xchk_da_btree( struct xfs_scrub *sc, int whichfork, xchk_da_btree_rec_fn scrub_fn, void *private) argument
|
H A D | common.c | 135 int whichfork, 155 trace_xchk_file_op_error(sc, whichfork, offset, *error, 166 trace_xchk_file_op_error(sc, whichfork, offset, *error, 176 int whichfork, 180 return __xchk_fblock_process_error(sc, whichfork, offset, error, 187 int whichfork, 191 return __xchk_fblock_process_error(sc, whichfork, offset, error, 301 int whichfork, 305 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); 312 int whichfork, 133 __xchk_fblock_process_error( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset, int *error, __u32 errflag, void *ret_ip) argument 174 xchk_fblock_process_error( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset, int *error) argument 185 xchk_fblock_xref_process_error( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset, int *error) argument 299 xchk_fblock_set_corrupt( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset) argument 310 xchk_fblock_xref_set_corrupt( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset) argument 334 xchk_fblock_set_warning( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset) argument [all...] |
H A D | repair.h | 86 int xrep_ino_ensure_extent_count(struct xfs_scrub *sc, int whichfork, 89 int xrep_bmap(struct xfs_scrub *sc, int whichfork, bool allow_unwritten);
|
H A D | rmap_repair.c | 316 int whichfork; member in struct:xrep_rmap_ifork 351 if (rf->whichfork == XFS_ATTR_FORK) 423 xfs_rmap_ino_bmbt_owner(&oinfo, rf->accum.rm_owner, rf->whichfork); 438 int whichfork) 440 return XFS_IS_REALTIME_INODE(ip) && whichfork == XFS_DATA_FORK; 460 ifp = xfs_ifork_ptr(ip, rf->whichfork); 461 cur = xfs_bmbt_init_cursor(rr->sc->mp, rr->sc->tp, ip, rf->whichfork); 463 if (!xfs_ifork_is_realtime(ip, rf->whichfork) && 515 int whichfork) 520 .whichfork 436 is_rt_data_fork( struct xfs_inode *ip, int whichfork) argument 512 xrep_rmap_scan_ifork( struct xrep_rmap *rr, struct xfs_inode *ip, int whichfork) argument [all...] |
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_inode_fork.c | 36 int whichfork, 40 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); 77 int whichfork, 85 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { 89 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); 97 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); 109 int whichfork) 112 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); 113 int state = xfs_bmap_fork_to_state(whichfork); 34 xfs_init_local_fork( struct xfs_inode *ip, int whichfork, const void *data, int64_t size) argument 74 xfs_iformat_local( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork, int size) argument 106 xfs_iformat_extents( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork) argument 173 xfs_iformat_btree( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork) argument 384 xfs_iroot_realloc( xfs_inode_t *ip, int rec_diff, int whichfork) argument 511 xfs_idata_realloc( struct xfs_inode *ip, int64_t byte_diff, int whichfork) argument 566 xfs_iextents_copy( struct xfs_inode *ip, struct xfs_bmbt_rec *dp, int whichfork) argument 606 xfs_iflush_fork( struct xfs_inode *ip, struct xfs_dinode *dip, struct xfs_inode_log_item *iip, int whichfork) argument 769 xfs_iext_count_may_overflow( struct xfs_inode *ip, int whichfork, int nr_to_add) argument 820 xfs_ifork_is_realtime( struct xfs_inode *ip, int whichfork) argument [all...] |
H A D | xfs_bmap.h | 181 struct xfs_inode *ip, int whichfork); 182 void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork); 184 xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork); 186 xfs_fileoff_t *last_block, int whichfork); 188 int whichfork); 198 int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork, 215 int xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork, 219 int xfs_bmapi_convert_delalloc(struct xfs_inode *ip, int whichfork, 222 struct xfs_inode *ip, int whichfork, 250 int whichfork, struc 254 xfs_bmap_fork_to_state(int whichfork) argument [all...] |
H A D | xfs_bmap.c | 56 int whichfork) /* data or attr fork */ 79 whichfork); 80 if (whichfork == XFS_DATA_FORK) 95 mp->m_bm_maxlevels[whichfork] = level; 96 ASSERT(mp->m_bm_maxlevels[whichfork] <= xfs_bmbt_maxlevels_ondisk()); 132 static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork) argument 134 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); 136 return whichfork != XFS_COW_FORK && 138 ifp->if_nextents > XFS_IFORK_MAXEXT(ip, whichfork); 144 static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork) argument 54 xfs_bmap_compute_maxlevels( xfs_mount_t *mp, int whichfork) argument 217 xfs_bmap_forkoff_reset( xfs_inode_t *ip, int whichfork) argument 341 xfs_bmap_check_leaf_extents( struct xfs_btree_cur *cur, xfs_inode_t *ip, int whichfork) argument 560 xfs_bmap_btree_to_extents( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_btree_cur *cur, int *logflagsp, int whichfork) argument 628 xfs_bmap_extents_to_btree( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_btree_cur **curp, int wasdel, int *logflagsp, int whichfork) argument 762 xfs_bmap_local_to_extents_empty( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) argument 783 xfs_bmap_local_to_extents( xfs_trans_t *tp, xfs_inode_t *ip, xfs_extlen_t total, int *logflagsp, int whichfork, void (*init_fn)(struct xfs_trans *tp, struct xfs_buf *bp, struct xfs_inode *ip, struct xfs_ifork *ifp)) argument 1119 xfs_bmap_complain_bad_rec( struct xfs_inode *ip, int whichfork, xfs_failaddr_t fa, const struct xfs_bmbt_irec *irec) argument 1161 int whichfork = cur->bc_ino.whichfork; local 1207 xfs_iread_extents( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) argument 1259 xfs_bmap_first_unused( struct xfs_trans *tp, struct xfs_inode *ip, xfs_extlen_t len, xfs_fileoff_t *first_unused, int whichfork) argument 1307 xfs_bmap_last_before( struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t *last_block, int whichfork) argument 1341 xfs_bmap_last_extent( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *rec, int *is_empty) argument 1374 xfs_bmap_isaeof( struct xfs_bmalloca *bma, int whichfork) argument 1409 xfs_bmap_last_offset( struct xfs_inode *ip, xfs_fileoff_t *last_block, int whichfork) argument 1445 xfs_bmap_add_extent_delay_real( struct xfs_bmalloca *bma, int whichfork) argument 2006 xfs_bmap_add_extent_unwritten_real( struct xfs_trans *tp, xfs_inode_t *ip, int whichfork, struct xfs_iext_cursor *icur, struct xfs_btree_cur **curp, xfs_bmbt_irec_t *new, int *logflagsp) argument 2564 xfs_bmap_add_extent_hole_delay( xfs_inode_t *ip, int whichfork, struct xfs_iext_cursor *icur, xfs_bmbt_irec_t *new) argument 2704 xfs_bmap_add_extent_hole_real( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, struct xfs_iext_cursor *icur, struct xfs_btree_cur **curp, struct xfs_bmbt_irec *new, int *logflagsp, uint32_t flags) argument 3968 int whichfork = xfs_bmapi_whichfork(flags); local 4055 xfs_bmapi_reserve_delalloc( struct xfs_inode *ip, int whichfork, xfs_fileoff_t off, xfs_filblks_t len, xfs_filblks_t prealloc, struct xfs_bmbt_irec *got, struct xfs_iext_cursor *icur, int eof) argument 4155 int whichfork = xfs_bmapi_whichfork(bma->flags); local 4192 int whichfork = xfs_bmapi_whichfork(bma->flags); local 4290 int whichfork = xfs_bmapi_whichfork(flags); local 4384 xfs_bmapi_finish( struct xfs_bmalloca *bma, int whichfork, int error) argument 4427 int whichfork = xfs_bmapi_whichfork(flags); local 4603 xfs_bmapi_convert_delalloc( struct xfs_inode *ip, int whichfork, xfs_off_t offset, struct iomap *iomap, unsigned int *seq) argument 4748 int whichfork = xfs_bmapi_whichfork(flags); local 4899 xfs_bmap_del_extent_delay( struct xfs_inode *ip, int whichfork, struct xfs_iext_cursor *icur, struct xfs_bmbt_irec *got, struct xfs_bmbt_irec *del) argument 5098 xfs_bmap_del_extent_real( xfs_inode_t *ip, xfs_trans_t *tp, struct xfs_iext_cursor *icur, struct xfs_btree_cur *cur, xfs_bmbt_irec_t *del, int *logflagsp, int whichfork, uint32_t bflags) argument 5370 int whichfork; /* data or attribute fork */ local 5712 xfs_bmse_merge( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, xfs_fileoff_t shift, struct xfs_iext_cursor *icur, struct xfs_bmbt_irec *got, struct xfs_bmbt_irec *left, struct xfs_btree_cur *cur, int *logflags) argument 5798 xfs_bmap_shift_update_extent( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, struct xfs_iext_cursor *icur, struct xfs_bmbt_irec *got, struct xfs_btree_cur *cur, int *logflags, xfs_fileoff_t startoff) argument 5849 int whichfork = XFS_DATA_FORK; local 5964 int whichfork = XFS_DATA_FORK; local 6066 int whichfork = XFS_DATA_FORK; local 6178 __xfs_bmap_add( struct xfs_trans *tp, enum xfs_bmap_intent_type type, struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *bmap) argument 6204 xfs_bmap_map_extent( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *PREV) argument 6215 xfs_bmap_unmap_extent( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *PREV) argument 6272 xfs_bmap_validate_extent_raw( struct xfs_mount *mp, bool rtfile, int whichfork, struct xfs_bmbt_irec *irec) argument 6314 xfs_bmap_validate_extent( struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *irec) argument [all...] |
H A D | xfs_da_btree.h | 69 int whichfork; /* data or attribute fork */ member in struct:xfs_da_args 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,
|
H A D | xfs_bmap_btree.c | 187 cur->bc_ino.ip, cur->bc_ino.whichfork); 221 cur->bc_ino.whichfork); 235 cur->bc_ino.whichfork); 283 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_ino.whichfork); 551 * For staging cursors -1 in passed in whichfork. 558 int whichfork) 563 ASSERT(whichfork != XFS_COW_FORK); 569 switch (whichfork) { 574 maxlevels = mp->m_bm_maxlevels[whichfork]; 580 cur->bc_ino.whichfork 554 xfs_bmbt_init_cursor( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) argument 607 xfs_bmbt_commit_staged_btree( struct xfs_btree_cur *cur, struct xfs_trans *tp, int whichfork) argument 713 xfs_bmbt_change_owner( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, xfs_ino_t new_owner, struct list_head *buffer_list) argument [all...] |
H A D | xfs_inode_fork.h | 103 int whichfork) 105 switch (whichfork) { 146 int whichfork) 148 switch (whichfork) { 172 int whichfork); 177 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork, 259 int xfs_iext_count_may_overflow(struct xfs_inode *ip, int whichfork, 263 bool xfs_ifork_is_realtime(struct xfs_inode *ip, int whichfork); 102 xfs_iext_max_nextents(bool has_large_extent_counts, int whichfork) argument 144 xfs_dfork_nextents( struct xfs_dinode *dip, int whichfork) argument
|
H A D | xfs_rmap.h | 15 int whichfork) 20 if (whichfork == XFS_ATTR_FORK) 28 int whichfork, 34 if (whichfork == XFS_ATTR_FORK) 174 int whichfork, struct xfs_bmbt_irec *imap); 176 int whichfork, struct xfs_bmbt_irec *imap); 178 struct xfs_inode *ip, int whichfork, 12 xfs_rmap_ino_bmbt_owner( struct xfs_owner_info *oi, xfs_ino_t ino, int whichfork) argument 25 xfs_rmap_ino_owner( struct xfs_owner_info *oi, xfs_ino_t ino, int whichfork, xfs_fileoff_t offset) argument
|
H A D | xfs_bmap_btree.h | 105 int whichfork, xfs_ino_t new_owner, 111 struct xfs_trans *tp, int whichfork);
|
H A D | xfs_da_btree.c | 133 static inline int xfs_dabuf_nfsb(struct xfs_mount *mp, int whichfork) argument 135 if (whichfork == XFS_DATA_FORK) 358 int whichfork, 380 xfs_dirattr_mark_sick(dp, whichfork); 391 int whichfork) 395 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, 399 return xfs_da3_node_set_type(tp, dp, whichfork, *bpp); 408 int whichfork) 414 XFS_FSB_TO_BB(mp, xfs_dabuf_nfsb(mp, whichfork)), 0, 417 xfs_dirattr_mark_sick(dp, whichfork); 355 xfs_da3_node_set_type( struct xfs_trans *tp, struct xfs_inode *dp, int whichfork, struct xfs_buf *bp) argument 386 xfs_da3_node_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork) argument 403 xfs_da3_node_read_mapped( struct xfs_trans *tp, struct xfs_inode *dp, xfs_daddr_t mappedbno, struct xfs_buf **bpp, int whichfork) argument 458 xfs_da3_node_create( struct xfs_da_args *args, xfs_dablk_t blkno, int level, struct xfs_buf **bpp, int whichfork) argument 2531 xfs_dabuf_map( struct xfs_inode *dp, xfs_dablk_t bno, unsigned int flags, int whichfork, struct xfs_buf_map **mapp, int *nmaps) argument 2619 xfs_da_get_buf( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork) argument 2654 xfs_da_read_buf( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp, int whichfork, const struct xfs_buf_ops *ops) argument 2697 xfs_da_reada_buf( struct xfs_inode *dp, xfs_dablk_t bno, unsigned int flags, int whichfork, const struct xfs_buf_ops *ops) argument [all...] |
H A D | xfs_btree_staging.h | 46 int whichfork);
|
H A D | xfs_health.h | 211 void xfs_bmap_mark_sick(struct xfs_inode *ip, int whichfork); 213 void xfs_dirattr_mark_sick(struct xfs_inode *ip, int whichfork);
|
H A D | xfs_inode_buf.c | 364 int whichfork) 369 uint32_t fork_size = XFS_DFORK_SIZE(dip, mp, whichfork); 370 uint32_t fork_format = XFS_DFORK_FORMAT(dip, whichfork); 372 di_nextents = xfs_dfork_nextents(dip, whichfork); 381 if (whichfork == XFS_DATA_FORK) { 398 if (S_ISREG(mode) && whichfork == XFS_DATA_FORK) 404 if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork)) 410 whichfork); 361 xfs_dinode_verify_fork( struct xfs_dinode *dip, struct xfs_mount *mp, int whichfork) argument
|
/linux-master/fs/xfs/ |
H A D | xfs_aops.c | 248 int whichfork, 254 if (whichfork == XFS_COW_FORK) 266 error = xfs_bmapi_convert_delalloc(ip, whichfork, offset, 288 int whichfork; local 325 whichfork = XFS_DATA_FORK; 340 whichfork = XFS_COW_FORK; 387 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap); 390 error = xfs_convert_blocks(wpc, ip, whichfork, offset); 399 if (error == -EAGAIN && whichfork == XFS_COW_FORK && !retries++) 410 if (whichfork ! 245 xfs_convert_blocks( struct iomap_writepage_ctx *wpc, struct xfs_inode *ip, int whichfork, loff_t offset) argument [all...] |
H A D | xfs_bmap_util.h | 52 int whichfork, struct xfs_bmbt_irec *rec, 76 int whichfork, xfs_extnum_t *nextents,
|
H A D | xfs_inode.h | 110 int whichfork) 112 switch (whichfork) { 150 int whichfork) 152 switch (whichfork) { 562 int whichfork, 565 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); 631 bool xfs_ifork_zapped(const struct xfs_inode *ip, int whichfork); 108 xfs_ifork_ptr( struct xfs_inode *ip, int whichfork) argument 148 xfs_inode_fork_size( struct xfs_inode *ip, int whichfork) argument 559 xfs_itruncate_extents( struct xfs_trans **tpp, struct xfs_inode *ip, int whichfork, xfs_fsize_t new_size) argument
|
H A D | xfs_health.c | 502 int whichfork) 506 switch (whichfork) { 540 cur->bc_ino.whichfork); 557 int whichfork) 561 switch (whichfork) { 584 xfs_dirattr_mark_sick(args->dp, args->whichfork); 500 xfs_bmap_mark_sick( struct xfs_inode *ip, int whichfork) argument 555 xfs_dirattr_mark_sick( struct xfs_inode *ip, int whichfork) argument
|