Home
last modified time | relevance | path

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

12

/Linux-v6.6/fs/xfs/scrub/
Dbmap.c113 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()
[all …]
Dcommon.h39 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,
Ddabtree.c53 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() argument
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()
Dcommon.c124 int whichfork, in __xchk_fblock_process_error() argument
145 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error()
155 int whichfork, in xchk_fblock_process_error() argument
159 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error()
166 int whichfork, in xchk_fblock_xref_process_error() argument
170 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error()
267 int whichfork, in xchk_fblock_set_corrupt() argument
271 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_set_corrupt()
278 int whichfork, in xchk_fblock_xref_set_corrupt() argument
282 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_xref_set_corrupt()
[all …]
Dtrace.h214 TP_PROTO(struct xfs_scrub *sc, int whichfork,
216 TP_ARGS(sc, whichfork, offset, error, ret_ip),
220 __field(int, whichfork)
229 __entry->whichfork = whichfork;
238 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS),
313 TP_PROTO(struct xfs_scrub *sc, int whichfork,
315 TP_ARGS(sc, whichfork, offset, ret_ip),
319 __field(int, whichfork)
327 __entry->whichfork = whichfork;
335 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS),
[all …]
Ddabtree.h40 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
/Linux-v6.6/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.h179 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 …]
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_inode_fork.h105 int whichfork) in xfs_iext_max_nextents() argument
107 switch (whichfork) { in xfs_iext_max_nextents()
148 int whichfork) in xfs_dfork_nextents() argument
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,
Dxfs_bmap_btree.c172 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() argument
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_cache); in xfs_bmbt_init_cursor()
[all …]
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()
174 int whichfork, struct xfs_bmbt_irec *imap);
176 int whichfork, struct xfs_bmbt_irec *imap);
178 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.c2534 int whichfork) in xfs_rmap_update_is_needed() argument
2536 return xfs_has_rmapbt(mp) && whichfork != XFS_COW_FORK; in xfs_rmap_update_is_needed()
2548 int whichfork, in __xfs_rmap_add() argument
2557 owner, whichfork, in __xfs_rmap_add()
2566 ri->ri_whichfork = whichfork; in __xfs_rmap_add()
2578 int whichfork, in xfs_rmap_map_extent() argument
2583 if (!xfs_rmap_update_is_needed(tp->t_mountp, whichfork)) in xfs_rmap_map_extent()
2586 if (whichfork != XFS_ATTR_FORK && xfs_is_reflink_inode(ip)) in xfs_rmap_map_extent()
2589 __xfs_rmap_add(tp, type, ip->i_ino, whichfork, PREV); in xfs_rmap_map_extent()
2597 int whichfork, in xfs_rmap_unmap_extent() argument
[all …]
Dxfs_btree_staging.h53 int whichfork, const struct xfs_btree_ops *ops);
Dxfs_dir2.c288 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname()
382 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup()
456 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename()
517 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-v6.6/fs/xfs/
Dxfs_aops.c248 int whichfork, in xfs_convert_blocks() argument
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 != XFS_COW_FORK && cow_fsb != NULLFILEOFF) { in xfs_map_blocks()
[all …]
Dxfs_inode.h110 int whichfork) in xfs_ifork_ptr() argument
112 switch (whichfork) { in xfs_ifork_ptr()
150 int whichfork) in xfs_inode_fork_size() argument
152 switch (whichfork) { in xfs_inode_fork_size()
548 int whichfork, in xfs_itruncate_extents() argument
551 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
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()
410 int whichfork, lock, error = 0; in xfs_getbmap() local
435 whichfork = XFS_ATTR_FORK; in xfs_getbmap()
437 whichfork = XFS_COW_FORK; in xfs_getbmap()
439 whichfork = XFS_DATA_FORK; in xfs_getbmap()
442 switch (whichfork) { in xfs_getbmap()
455 if (!xfs_ifork_ptr(ip, whichfork)) in xfs_getbmap()
[all …]
Dxfs_trace.h1445 int whichfork, struct xfs_bmbt_irec *irec),
1446 TP_ARGS(ip, offset, count, whichfork, irec),
1453 __field(int, whichfork)
1464 __entry->whichfork = whichfork;
1476 __print_symbolic(__entry->whichfork, XFS_WHICHFORK_STRINGS),
1485 int whichfork, struct xfs_bmbt_irec *irec), \
1486 TP_ARGS(ip, offset, count, whichfork, irec))
2614 int whichfork,
2618 TP_ARGS(mp, agno, op, agbno, ino, whichfork, offset, len, state),
2624 __field(int, whichfork)
[all …]

12