/kernel/linux/linux-5.10/fs/xfs/scrub/ |
H A 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() 443 xchk_bmap_btree( struct xfs_scrub *sc, int whichfork, struct xchk_bmap_info *info) xchk_bmap_btree() argument 474 int whichfork; global() member 551 xchk_bmap_check_ag_rmaps( struct xfs_scrub *sc, int whichfork, xfs_agnumber_t agno) xchk_bmap_check_ag_rmaps() argument 585 xchk_bmap_check_rmaps( struct xfs_scrub *sc, int whichfork) xchk_bmap_check_rmaps() argument 640 xchk_bmap( struct xfs_scrub *sc, int whichfork) xchk_bmap() argument [all...] |
H 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,
|
H A 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 [all...] |
H A D | common.c | 119 int whichfork, in __xchk_fblock_process_error() 139 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error() 149 int whichfork, in xchk_fblock_process_error() 153 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error() 160 int whichfork, in xchk_fblock_xref_process_error() 164 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error() 261 int whichfork, in xchk_fblock_set_corrupt() 265 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_set_corrupt() 272 int whichfork, in xchk_fblock_xref_set_corrupt() 276 trace_xchk_fblock_error(sc, whichfork, offse in xchk_fblock_xref_set_corrupt() 117 __xchk_fblock_process_error( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset, int *error, __u32 errflag, void *ret_ip) __xchk_fblock_process_error() argument 147 xchk_fblock_process_error( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset, int *error) xchk_fblock_process_error() argument 158 xchk_fblock_xref_process_error( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset, int *error) xchk_fblock_xref_process_error() argument 259 xchk_fblock_set_corrupt( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset) xchk_fblock_set_corrupt() argument 270 xchk_fblock_xref_set_corrupt( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset) xchk_fblock_xref_set_corrupt() argument 294 xchk_fblock_set_warning( struct xfs_scrub *sc, int whichfork, xfs_fileoff_t offset) xchk_fblock_set_warning() argument [all...] |
H 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() 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() 470 xchk_da_btree( struct xfs_scrub *sc, int whichfork, xchk_da_btree_rec_fn scrub_fn, void *private) xchk_da_btree() argument
|
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A 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() 498 xchk_bmap_btree( struct xfs_scrub *sc, int whichfork, struct xchk_bmap_info *info) xchk_bmap_btree() argument 528 int whichfork; global() member 608 xchk_bmap_check_ag_rmaps( struct xfs_scrub *sc, int whichfork, struct xfs_perag *pag) xchk_bmap_check_ag_rmaps() argument 679 xchk_bmap_check_rmaps( struct xfs_scrub *sc, int whichfork) xchk_bmap_check_rmaps() argument 830 xchk_bmap( struct xfs_scrub *sc, int whichfork) xchk_bmap() argument [all...] |
H A 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() 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() 471 xchk_da_btree( struct xfs_scrub *sc, int whichfork, xchk_da_btree_rec_fn scrub_fn, void *private) xchk_da_btree() argument
|
H A 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,
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_inode_fork.c | 34 int whichfork, in xfs_init_local_fork() 38 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_init_local_fork() 71 int whichfork, in xfs_iformat_local() 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() 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() 32 xfs_init_local_fork( struct xfs_inode *ip, int whichfork, const void *data, int64_t size) xfs_init_local_fork() argument 68 xfs_iformat_local( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork, int size) xfs_iformat_local() argument 99 xfs_iformat_extents( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork) xfs_iformat_extents() argument 164 xfs_iformat_btree( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork) xfs_iformat_btree() argument 371 xfs_iroot_realloc( xfs_inode_t *ip, int rec_diff, int whichfork) xfs_iroot_realloc() argument 497 xfs_idata_realloc( struct xfs_inode *ip, int64_t byte_diff, int whichfork) xfs_idata_realloc() argument 555 xfs_iextents_copy( struct xfs_inode *ip, struct xfs_bmbt_rec *dp, int whichfork) xfs_iextents_copy() argument 595 xfs_iflush_fork( struct xfs_inode *ip, struct xfs_dinode *dip, struct xfs_inode_log_item *iip, int whichfork) xfs_iflush_fork() argument 747 xfs_iext_count_may_overflow( struct xfs_inode *ip, int whichfork, int nr_to_add) xfs_iext_count_may_overflow() argument [all...] |
H A D | xfs_bmap.c | 53 int whichfork) /* data or attr fork */ in xfs_bmap_compute_maxlevels() 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 51 xfs_bmap_compute_maxlevels( xfs_mount_t *mp, int whichfork) xfs_bmap_compute_maxlevels() argument 214 xfs_bmap_forkoff_reset( xfs_inode_t *ip, int whichfork) xfs_bmap_forkoff_reset() argument 316 xfs_bmap_check_leaf_extents( struct xfs_btree_cur *cur, xfs_inode_t *ip, int whichfork) xfs_bmap_check_leaf_extents() argument 534 xfs_bmap_btree_to_extents( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_btree_cur *cur, int *logflagsp, int whichfork) xfs_bmap_btree_to_extents() argument 599 xfs_bmap_extents_to_btree( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_btree_cur **curp, int wasdel, int *logflagsp, int whichfork) xfs_bmap_extents_to_btree() argument 737 xfs_bmap_local_to_extents_empty( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) xfs_bmap_local_to_extents_empty() argument 758 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)) xfs_bmap_local_to_extents() argument 1092 xfs_bmap_complain_bad_rec( struct xfs_inode *ip, int whichfork, xfs_failaddr_t fa, const struct xfs_bmbt_irec *irec) xfs_bmap_complain_bad_rec() argument 1134 int whichfork = cur->bc_ino.whichfork; xfs_iread_bmbt_block() local 1178 xfs_iread_extents( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) xfs_iread_extents() argument 1227 xfs_bmap_first_unused( struct xfs_trans *tp, struct xfs_inode *ip, xfs_extlen_t len, xfs_fileoff_t *first_unused, int whichfork) xfs_bmap_first_unused() argument 1275 xfs_bmap_last_before( struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t *last_block, int whichfork) xfs_bmap_last_before() argument 1308 xfs_bmap_last_extent( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *rec, int *is_empty) xfs_bmap_last_extent() argument 1341 xfs_bmap_isaeof( struct xfs_bmalloca *bma, int whichfork) xfs_bmap_isaeof() argument 1376 xfs_bmap_last_offset( struct xfs_inode *ip, xfs_fileoff_t *last_block, int whichfork) xfs_bmap_last_offset() argument 1410 xfs_bmap_add_extent_delay_real( struct xfs_bmalloca *bma, int whichfork) xfs_bmap_add_extent_delay_real() argument 1957 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) xfs_bmap_add_extent_unwritten_real() argument 2492 xfs_bmap_add_extent_hole_delay( xfs_inode_t *ip, int whichfork, struct xfs_iext_cursor *icur, xfs_bmbt_irec_t *new) xfs_bmap_add_extent_hole_delay() argument 2632 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) xfs_bmap_add_extent_hole_real() argument 3874 int whichfork = xfs_bmapi_whichfork(flags); xfs_bmapi_read() local 3957 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) xfs_bmapi_reserve_delalloc() argument 4057 int whichfork = xfs_bmapi_whichfork(bma->flags); xfs_bmap_alloc_userdata() local 4094 int whichfork = xfs_bmapi_whichfork(bma->flags); xfs_bmapi_allocate() local 4193 int whichfork = xfs_bmapi_whichfork(flags); xfs_bmapi_convert_unwritten() local 4287 xfs_bmapi_finish( struct xfs_bmalloca *bma, int whichfork, int error) xfs_bmapi_finish() argument 4330 int whichfork = xfs_bmapi_whichfork(flags); xfs_bmapi_write() local 4505 xfs_bmapi_convert_delalloc( struct xfs_inode *ip, int whichfork, xfs_off_t offset, struct iomap *iomap, unsigned int *seq) xfs_bmapi_convert_delalloc() argument 4648 int whichfork = xfs_bmapi_whichfork(flags); xfs_bmapi_remap() local 4800 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) xfs_bmap_del_extent_delay() argument 5003 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) xfs_bmap_del_extent_real() argument 5278 int whichfork; /* data or attribute fork */ __xfs_bunmapi() local 5619 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) xfs_bmse_merge() argument 5700 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) xfs_bmap_shift_update_extent() argument 5749 int whichfork = XFS_DATA_FORK; xfs_bmap_collapse_extents() local 5864 int whichfork = XFS_DATA_FORK; xfs_bmap_insert_extents() local 5965 int whichfork = XFS_DATA_FORK; xfs_bmap_split_extent() local 6083 __xfs_bmap_add( struct xfs_trans *tp, enum xfs_bmap_intent_type type, struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *bmap) __xfs_bmap_add() argument 6188 xfs_bmap_validate_extent( struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *irec) xfs_bmap_validate_extent() argument [all...] |
H A 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...] |
H A 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,
|
H A D | xfs_inode_fork.h | 105 int whichfork) in xfs_iext_max_nextents() 107 switch (whichfork) { in xfs_iext_max_nextents() 148 int whichfork) in xfs_dfork_nextents() 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, 104 xfs_iext_max_nextents(bool has_large_extent_counts, int whichfork) xfs_iext_max_nextents() argument 146 xfs_dfork_nextents( struct xfs_dinode *dip, int whichfork) xfs_dfork_nextents() argument
|
H A 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() 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_cach in xfs_bmbt_init_cursor() 550 xfs_bmbt_init_cursor( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) xfs_bmbt_init_cursor() argument 658 xfs_bmbt_change_owner( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, xfs_ino_t new_owner, struct list_head *buffer_list) xfs_bmbt_change_owner() argument [all...] |
H A D | xfs_rmap.h | 15 int whichfork) in xfs_rmap_ino_bmbt_owner() 20 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_bmbt_owner() 28 int whichfork, in xfs_rmap_ino_owner() 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, 12 xfs_rmap_ino_bmbt_owner( struct xfs_owner_info *oi, xfs_ino_t ino, int whichfork) xfs_rmap_ino_bmbt_owner() argument 25 xfs_rmap_ino_owner( struct xfs_owner_info *oi, xfs_ino_t ino, int whichfork, xfs_fileoff_t offset) xfs_rmap_ino_owner() argument
|
H A 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() 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() 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() 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() 381 xfs_da3_node_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork) xfs_da3_node_read() argument 398 xfs_da3_node_read_mapped( struct xfs_trans *tp, struct xfs_inode *dp, xfs_daddr_t mappedbno, struct xfs_buf **bpp, int whichfork) xfs_da3_node_read_mapped() argument 432 xfs_da3_node_create( struct xfs_da_args *args, xfs_dablk_t blkno, int level, struct xfs_buf **bpp, int whichfork) xfs_da3_node_create() argument 2512 xfs_dabuf_map( struct xfs_inode *dp, xfs_dablk_t bno, unsigned int flags, int whichfork, struct xfs_buf_map **mapp, int *nmaps) xfs_dabuf_map() argument 2597 xfs_da_get_buf( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork) xfs_da_get_buf() argument 2632 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) xfs_da_read_buf() argument 2673 xfs_da_reada_buf( struct xfs_inode *dp, xfs_dablk_t bno, unsigned int flags, int whichfork, const struct xfs_buf_ops *ops) xfs_da_reada_buf() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_inode_fork.c | 32 int whichfork, in xfs_init_local_fork() 36 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_init_local_fork() 72 int whichfork, in xfs_iformat_local() 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() 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() 30 xfs_init_local_fork( struct xfs_inode *ip, int whichfork, const void *data, int64_t size) xfs_init_local_fork() argument 69 xfs_iformat_local( xfs_inode_t *ip, xfs_dinode_t *dip, int whichfork, int size) xfs_iformat_local() argument 100 xfs_iformat_extents( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork) xfs_iformat_extents() argument 165 xfs_iformat_btree( xfs_inode_t *ip, xfs_dinode_t *dip, int whichfork) xfs_iformat_btree() argument 346 xfs_iroot_realloc( xfs_inode_t *ip, int rec_diff, int whichfork) xfs_iroot_realloc() argument 473 xfs_idata_realloc( struct xfs_inode *ip, int64_t byte_diff, int whichfork) xfs_idata_realloc() argument 537 xfs_iextents_copy( struct xfs_inode *ip, struct xfs_bmbt_rec *dp, int whichfork) xfs_iextents_copy() argument 577 xfs_iflush_fork( xfs_inode_t *ip, xfs_dinode_t *dip, struct xfs_inode_log_item *iip, int whichfork) xfs_iflush_fork() argument [all...] |
H A D | xfs_bmap.c | 53 int whichfork) /* data or attr fork */ in xfs_bmap_compute_maxlevels() 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 ! in xfs_bmap_wants_extents() 51 xfs_bmap_compute_maxlevels( xfs_mount_t *mp, int whichfork) xfs_bmap_compute_maxlevels() argument 213 xfs_bmap_forkoff_reset( xfs_inode_t *ip, int whichfork) xfs_bmap_forkoff_reset() argument 315 xfs_bmap_check_leaf_extents( xfs_btree_cur_t *cur, xfs_inode_t *ip, int whichfork) xfs_bmap_check_leaf_extents() argument 583 xfs_bmap_btree_to_extents( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_btree_cur *cur, int *logflagsp, int whichfork) xfs_bmap_btree_to_extents() argument 645 xfs_bmap_extents_to_btree( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_btree_cur **curp, int wasdel, int *logflagsp, int whichfork) xfs_bmap_extents_to_btree() argument 795 xfs_bmap_local_to_extents_empty( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) xfs_bmap_local_to_extents_empty() argument 818 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)) xfs_bmap_local_to_extents() argument 1179 int whichfork = cur->bc_ino.whichfork; xfs_iread_bmbt_block() local 1222 xfs_iread_extents( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) xfs_iread_extents() argument 1269 xfs_bmap_first_unused( struct xfs_trans *tp, struct xfs_inode *ip, xfs_extlen_t len, xfs_fileoff_t *first_unused, int whichfork) xfs_bmap_first_unused() argument 1319 xfs_bmap_last_before( struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t *last_block, int whichfork) xfs_bmap_last_before() argument 1354 xfs_bmap_last_extent( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *rec, int *is_empty) xfs_bmap_last_extent() argument 1389 xfs_bmap_isaeof( struct xfs_bmalloca *bma, int whichfork) xfs_bmap_isaeof() argument 1424 xfs_bmap_last_offset( struct xfs_inode *ip, xfs_fileoff_t *last_block, int whichfork) xfs_bmap_last_offset() argument 1456 xfs_bmap_one_block( struct xfs_inode *ip, int whichfork) xfs_bmap_one_block() argument 1490 xfs_bmap_add_extent_delay_real( struct xfs_bmalloca *bma, int whichfork) xfs_bmap_add_extent_delay_real() argument 2037 xfs_bmap_add_extent_unwritten_real( struct xfs_trans *tp, xfs_inode_t *ip, int whichfork, struct xfs_iext_cursor *icur, xfs_btree_cur_t **curp, xfs_bmbt_irec_t *new, int *logflagsp) xfs_bmap_add_extent_unwritten_real() argument 2572 xfs_bmap_add_extent_hole_delay( xfs_inode_t *ip, int whichfork, struct xfs_iext_cursor *icur, xfs_bmbt_irec_t *new) xfs_bmap_add_extent_hole_delay() argument 2712 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, int flags) xfs_bmap_add_extent_hole_real() argument 3874 int whichfork = xfs_bmapi_whichfork(flags); xfs_bmapi_read() local 3959 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) xfs_bmapi_reserve_delalloc() argument 4061 int whichfork = xfs_bmapi_whichfork(bma->flags); xfs_bmap_alloc_userdata() local 4094 int whichfork = xfs_bmapi_whichfork(bma->flags); xfs_bmapi_allocate() local 4188 int whichfork = xfs_bmapi_whichfork(flags); xfs_bmapi_convert_unwritten() local 4282 xfs_bmapi_finish( struct xfs_bmalloca *bma, int whichfork, int error) xfs_bmapi_finish() argument 4325 int whichfork = xfs_bmapi_whichfork(flags); xfs_bmapi_write() local 4502 xfs_bmapi_convert_delalloc( struct xfs_inode *ip, int whichfork, xfs_off_t offset, struct iomap *iomap, unsigned int *seq) xfs_bmapi_convert_delalloc() argument 4634 int whichfork = xfs_bmapi_whichfork(flags); xfs_bmapi_remap() local 4788 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) xfs_bmap_del_extent_delay() argument 4992 xfs_bmap_del_extent_real( xfs_inode_t *ip, xfs_trans_t *tp, struct xfs_iext_cursor *icur, xfs_btree_cur_t *cur, xfs_bmbt_irec_t *del, int *logflagsp, int whichfork, int bflags) xfs_bmap_del_extent_real() argument 5276 int whichfork; /* data or attribute fork */ __xfs_bunmapi() local 5647 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) xfs_bmse_merge() argument 5728 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) xfs_bmap_shift_update_extent() argument 5777 int whichfork = XFS_DATA_FORK; xfs_bmap_collapse_extents() local 5894 int whichfork = XFS_DATA_FORK; xfs_bmap_insert_extents() local 5997 int whichfork = XFS_DATA_FORK; xfs_bmap_split_extent() local 6117 __xfs_bmap_add( struct xfs_trans *tp, enum xfs_bmap_intent_type type, struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *bmap) __xfs_bmap_add() argument 6177 xfs_bmap_finish_one( struct xfs_trans *tp, struct xfs_inode *ip, enum xfs_bmap_intent_type type, int whichfork, xfs_fileoff_t startoff, xfs_fsblock_t startblock, xfs_filblks_t *blockcount, xfs_exntst_t state) xfs_bmap_finish_one() argument 6223 xfs_bmap_validate_extent( struct xfs_inode *ip, int whichfork, struct xfs_bmbt_irec *irec) xfs_bmap_validate_extent() argument [all...] |
H A 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, 275 xfs_bmap_fork_to_state(int whichfork) xfs_bmap_fork_to_state() argument [all...] |
H A 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,
|
H A D | xfs_rmap.h | 13 int whichfork) in xfs_rmap_ino_bmbt_owner() 18 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_bmbt_owner() 26 int whichfork, in xfs_rmap_ino_owner() 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, 10 xfs_rmap_ino_bmbt_owner( struct xfs_owner_info *oi, xfs_ino_t ino, int whichfork) xfs_rmap_ino_bmbt_owner() argument 23 xfs_rmap_ino_owner( struct xfs_owner_info *oi, xfs_ino_t ino, int whichfork, xfs_fileoff_t offset) xfs_rmap_ino_owner() argument
|
H A 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() 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 in xfs_bmbt_init_cursor() 545 xfs_bmbt_init_cursor( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_inode *ip, int whichfork) xfs_bmbt_init_cursor() argument 627 xfs_bmbt_change_owner( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, xfs_ino_t new_owner, struct list_head *buffer_list) xfs_bmbt_change_owner() argument [all...] |
H A 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() 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() 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() 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() 369 xfs_da3_node_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork) xfs_da3_node_read() argument 386 xfs_da3_node_read_mapped( struct xfs_trans *tp, struct xfs_inode *dp, xfs_daddr_t mappedbno, struct xfs_buf **bpp, int whichfork) xfs_da3_node_read_mapped() argument 420 xfs_da3_node_create( struct xfs_da_args *args, xfs_dablk_t blkno, int level, struct xfs_buf **bpp, int whichfork) xfs_da3_node_create() argument 2500 xfs_dabuf_map( struct xfs_inode *dp, xfs_dablk_t bno, unsigned int flags, int whichfork, struct xfs_buf_map **mapp, int *nmaps) xfs_dabuf_map() argument 2585 xfs_da_get_buf( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork) xfs_da_get_buf() argument 2620 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) xfs_da_read_buf() argument 2661 xfs_da_reada_buf( struct xfs_inode *dp, xfs_dablk_t bno, unsigned int flags, int whichfork, const struct xfs_buf_ops *ops) xfs_da_reada_buf() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_aops.c | 289 int whichfork, in xfs_convert_blocks() 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 ! in xfs_map_blocks() 286 xfs_convert_blocks( struct iomap_writepage_ctx *wpc, struct xfs_inode *ip, int whichfork, loff_t offset) xfs_convert_blocks() argument [all...] |
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_aops.c | 248 int whichfork, in xfs_convert_blocks() 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 ! in xfs_map_blocks() 245 xfs_convert_blocks( struct iomap_writepage_ctx *wpc, struct xfs_inode *ip, int whichfork, loff_t offset) xfs_convert_blocks() argument [all...] |