Home
last modified time | relevance | path

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

12

/Linux-v5.15/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()
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 …]
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.c121 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 …]
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()
490 ds.dargs.whichfork = whichfork; in xchk_da_btree()
496 if (whichfork == XFS_ATTR_FORK) { in xchk_da_btree()
Ddabtree.h40 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
/Linux-v5.15/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()
72 int whichfork, in xfs_iformat_local() argument
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() argument
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()
108 int nex = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_iformat_extents()
[all …]
Dxfs_bmap.c54 int whichfork) /* data or attr fork */ in xfs_bmap_compute_maxlevels() argument
78 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_compute_maxlevels()
95 mp->m_bm_maxlevels[whichfork] = level; in xfs_bmap_compute_maxlevels()
131 static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork) in xfs_bmap_needs_btree() argument
133 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_needs_btree()
135 return whichfork != XFS_COW_FORK && in xfs_bmap_needs_btree()
137 ifp->if_nextents > XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_needs_btree()
143 static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork) in xfs_bmap_wants_extents() argument
145 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_wants_extents()
147 return whichfork != XFS_COW_FORK && in xfs_bmap_wants_extents()
[all …]
Dxfs_bmap.h191 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);
214 int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork,
231 int xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork,
235 int xfs_bmapi_convert_delalloc(struct xfs_inode *ip, int whichfork,
238 struct xfs_inode *ip, int whichfork,
266 enum xfs_bmap_intent_type type, int whichfork,
[all …]
Dxfs_da_btree.h69 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,
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.c169 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() 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_ino.forksize = XFS_IFORK_SIZE(ip, whichfork); in xfs_bmbt_init_cursor()
573 cur->bc_ino.whichfork = whichfork; in xfs_bmbt_init_cursor()
[all …]
Dxfs_da_btree.c119 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() argument
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() argument
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() argument
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()
[all …]
Dxfs_inode_buf.c337 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()
Dxfs_inode_fork.h146 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,
Dxfs_rmap.c2359 int whichfork, in xfs_rmap_finish_one() argument
2378 trace_xfs_rmap_deferred(mp, pag->pag_agno, type, bno, owner, whichfork, in xfs_rmap_finish_one()
2415 xfs_rmap_ino_owner(&oinfo, owner, whichfork, startoff); in xfs_rmap_finish_one()
2460 int whichfork) in xfs_rmap_update_is_needed() argument
2462 return xfs_has_rmapbt(mp) && whichfork != XFS_COW_FORK; in xfs_rmap_update_is_needed()
2474 int whichfork, in __xfs_rmap_add() argument
2483 owner, whichfork, in __xfs_rmap_add()
2492 ri->ri_whichfork = whichfork; in __xfs_rmap_add()
2503 int whichfork, in xfs_rmap_map_extent() argument
2508 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.c275 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()
Dxfs_btree_staging.c249 int whichfork, in xfs_btree_commit_ifakeroot() argument
259 cur->bc_ino.whichfork = whichfork; in xfs_btree_commit_ifakeroot()
Dxfs_bmap_btree.h104 int whichfork, xfs_ino_t new_owner,
/Linux-v5.15/fs/xfs/
Dxfs_aops.c218 int whichfork, in xfs_convert_blocks() argument
224 if (whichfork == XFS_COW_FORK) in xfs_convert_blocks()
236 error = xfs_bmapi_convert_delalloc(ip, whichfork, offset, in xfs_convert_blocks()
257 int whichfork; in xfs_map_blocks() local
292 whichfork = XFS_DATA_FORK; in xfs_map_blocks()
307 whichfork = XFS_COW_FORK; in xfs_map_blocks()
354 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap); in xfs_map_blocks()
357 error = xfs_convert_blocks(wpc, ip, whichfork, offset); in xfs_map_blocks()
366 if (error == -EAGAIN && whichfork == XFS_COW_FORK && !retries++) in xfs_map_blocks()
377 if (whichfork != XFS_COW_FORK && cow_fsb != NULLFILEOFF) { in xfs_map_blocks()
[all …]
Dxfs_bmap_item.c239 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()
Dxfs_rmap_item.c262 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()
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