Home
last modified time | relevance | path

Searched refs:whichfork (Results 1 – 25 of 38) sorted by relevance

12

/linux-5.19.10/fs/xfs/scrub/
Dbmap.c97 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()
144 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
163 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_xref_rmap()
176 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
184 if (info->whichfork != XFS_COW_FORK) { in xchk_bmap_xref_rmap()
190 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
194 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
207 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
[all …]
Dcommon.h37 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,
Dtrace.h172 TP_PROTO(struct xfs_scrub *sc, int whichfork,
174 TP_ARGS(sc, whichfork, offset, error, ret_ip),
178 __field(int, whichfork)
187 __entry->whichfork = whichfork;
196 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS),
271 TP_PROTO(struct xfs_scrub *sc, int whichfork,
273 TP_ARGS(sc, whichfork, offset, ret_ip),
277 __field(int, whichfork)
285 __entry->whichfork = whichfork;
293 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS),
[all …]
Dcommon.c123 int whichfork, in __xchk_fblock_process_error() argument
143 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error()
153 int whichfork, in xchk_fblock_process_error() argument
157 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error()
164 int whichfork, in xchk_fblock_xref_process_error() argument
168 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error()
265 int whichfork, in xchk_fblock_set_corrupt() argument
269 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_set_corrupt()
276 int whichfork, in xchk_fblock_xref_set_corrupt() argument
280 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_xref_set_corrupt()
[all …]
Ddabtree.c52 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()
Ddabtree.h40 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
/linux-5.19.10/fs/xfs/libxfs/
Dxfs_inode_fork.c34 int whichfork, in xfs_init_local_fork() argument
38 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_init_local_fork()
71 int whichfork, in xfs_iformat_local() argument
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() argument
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()
107 xfs_extnum_t nex = xfs_dfork_nextents(dip, whichfork); in xfs_iformat_extents()
[all …]
Dxfs_bmap.c53 int whichfork) /* data or attr fork */ in xfs_bmap_compute_maxlevels() argument
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
[all …]
Dxfs_bmap.h176 struct xfs_inode *ip, int whichfork);
177 void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, 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,
[all …]
Dxfs_da_btree.h69 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,
Dxfs_rmap.h15 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,
Dxfs_bmap_btree.c171 cur->bc_ino.ip, cur->bc_ino.whichfork); in xfs_bmbt_dup_cursor()
211 cur->bc_ino.whichfork); in xfs_bmbt_alloc_block()
290 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_ino.whichfork); in xfs_bmbt_free_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()
[all …]
Dxfs_inode_fork.h124 int whichfork) in xfs_iext_max_nextents() argument
126 switch (whichfork) { in xfs_iext_max_nextents()
167 int whichfork) in xfs_dfork_nextents() argument
169 switch (whichfork) { in xfs_dfork_nextents()
192 int whichfork);
197 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork,
276 int xfs_iext_count_may_overflow(struct xfs_inode *ip, int whichfork,
Dxfs_da_btree.c131 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() argument
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() argument
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() argument
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()
[all …]
Dxfs_inode_buf.c356 int whichfork) in xfs_dinode_verify_fork() argument
361 uint32_t fork_size = XFS_DFORK_SIZE(dip, mp, whichfork); in xfs_dinode_verify_fork()
362 uint32_t fork_format = XFS_DFORK_FORMAT(dip, whichfork); in xfs_dinode_verify_fork()
364 di_nextents = xfs_dfork_nextents(dip, whichfork); in xfs_dinode_verify_fork()
373 if (whichfork == XFS_DATA_FORK) { in xfs_dinode_verify_fork()
390 if (S_ISREG(mode) && whichfork == XFS_DATA_FORK) in xfs_dinode_verify_fork()
396 if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork)) in xfs_dinode_verify_fork()
402 whichfork); in xfs_dinode_verify_fork()
Dxfs_rmap.c2400 int whichfork, in xfs_rmap_finish_one() argument
2419 trace_xfs_rmap_deferred(mp, pag->pag_agno, type, bno, owner, whichfork, in xfs_rmap_finish_one()
2456 xfs_rmap_ino_owner(&oinfo, owner, whichfork, startoff); in xfs_rmap_finish_one()
2501 int whichfork) in xfs_rmap_update_is_needed() argument
2503 return xfs_has_rmapbt(mp) && whichfork != XFS_COW_FORK; in xfs_rmap_update_is_needed()
2515 int whichfork, in __xfs_rmap_add() argument
2524 owner, whichfork, in __xfs_rmap_add()
2533 ri->ri_whichfork = whichfork; in __xfs_rmap_add()
2544 int whichfork, in xfs_rmap_map_extent() argument
2549 if (!xfs_rmap_update_is_needed(tp->t_mountp, whichfork)) in xfs_rmap_map_extent()
[all …]
Dxfs_btree_staging.h53 int whichfork, const struct xfs_btree_ops *ops);
Dxfs_dir2.c287 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname()
381 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup()
455 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename()
516 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace()
Dxfs_bmap_btree.h104 int whichfork, xfs_ino_t new_owner,
Dxfs_btree_staging.c249 int whichfork, in xfs_btree_commit_ifakeroot() argument
259 cur->bc_ino.whichfork = whichfork; in xfs_btree_commit_ifakeroot()
/linux-5.19.10/fs/xfs/
Dxfs_aops.c241 int whichfork, in xfs_convert_blocks() argument
247 if (whichfork == XFS_COW_FORK) in xfs_convert_blocks()
259 error = xfs_bmapi_convert_delalloc(ip, whichfork, offset, in xfs_convert_blocks()
280 int whichfork; in xfs_map_blocks() local
315 whichfork = XFS_DATA_FORK; in xfs_map_blocks()
330 whichfork = XFS_COW_FORK; in xfs_map_blocks()
377 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap); in xfs_map_blocks()
380 error = xfs_convert_blocks(wpc, ip, whichfork, offset); in xfs_map_blocks()
389 if (error == -EAGAIN && whichfork == XFS_COW_FORK && !retries++) in xfs_map_blocks()
400 if (whichfork != XFS_COW_FORK && cow_fsb != NULLFILEOFF) { in xfs_map_blocks()
[all …]
Dxfs_bmap_item.c251 int whichfork, in xfs_trans_log_finish_bmap_update() argument
259 error = xfs_bmap_finish_one(tp, ip, type, whichfork, startoff, in xfs_trans_log_finish_bmap_update()
295 int whichfork, in xfs_trans_set_bmap_flags() argument
309 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_bmap_flags()
484 int whichfork; in xfs_bui_item_recover() local
497 whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_item_recover()
520 error = xfs_iext_count_may_overflow(ip, whichfork, iext_delta); in xfs_bui_item_recover()
528 whichfork, bmap->me_startoff, bmap->me_startblock, in xfs_bui_item_recover()
Dxfs_rmap_item.c274 int whichfork, in xfs_trans_set_rmap_flags() argument
280 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_rmap_flags()
323 int whichfork, in xfs_trans_log_finish_rmap_update() argument
332 error = xfs_rmap_finish_one(tp, type, owner, whichfork, startoff, in xfs_trans_log_finish_rmap_update()
529 int whichfork; in xfs_rui_item_recover() local
557 whichfork = (rmap->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ? in xfs_rui_item_recover()
590 rmap->me_owner, whichfork, in xfs_rui_item_recover()
Dxfs_bmap_util.h52 int whichfork, struct xfs_bmbt_irec *rec,
76 int whichfork, xfs_extnum_t *nextents,
Dxfs_bmap_util.c254 int whichfork, in xfs_bmap_count_blocks() argument
259 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_count_blocks()
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()
[all …]

12