Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/xfs/scrub/
Dbmap.c104 int whichfork; member
121 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap()
130 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap()
167 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
186 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_xref_rmap()
199 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
207 if (info->whichfork != XFS_COW_FORK) { in xchk_bmap_xref_rmap()
213 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
217 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
230 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);
52 void xchk_fblock_set_corrupt(struct xfs_scrub *sc, int whichfork,
60 int whichfork, xfs_fileoff_t offset);
63 void xchk_fblock_set_warning(struct xfs_scrub *sc, int whichfork,
Dtrace.h91 TP_PROTO(struct xfs_scrub *sc, int whichfork,
93 TP_ARGS(sc, whichfork, offset, error, ret_ip),
97 __field(int, whichfork)
106 __entry->whichfork = whichfork;
115 __entry->whichfork,
197 TP_PROTO(struct xfs_scrub *sc, int whichfork,
199 TP_ARGS(sc, whichfork, offset, ret_ip),
203 __field(int, whichfork)
211 __entry->whichfork = whichfork;
219 __entry->whichfork,
[all …]
Dcommon.c126 int whichfork, in __xchk_fblock_process_error() argument
146 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error()
156 int whichfork, in xchk_fblock_process_error() argument
160 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error()
167 int whichfork, in xchk_fblock_xref_process_error() argument
171 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error()
259 int whichfork, in xchk_fblock_set_corrupt() argument
263 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_set_corrupt()
270 int whichfork, in xchk_fblock_xref_set_corrupt() argument
274 trace_xchk_fblock_error(sc, whichfork, offset, __return_address); in xchk_fblock_xref_set_corrupt()
[all …]
Ddabtree.c60 trace_xchk_file_op_error(sc, ds->dargs.whichfork, in xchk_da_process_error()
82 trace_xchk_fblock_error(sc, ds->dargs.whichfork, in xchk_da_set_corrupt()
363 &blk->bp, dargs->whichfork, in xchk_da_btree_block()
375 if (ds->dargs.whichfork == XFS_DATA_FORK && level == 0 && in xchk_da_btree_block()
478 int whichfork, in xchk_da_btree() argument
492 if (XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_EXTENTS && in xchk_da_btree()
493 XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_BTREE) in xchk_da_btree()
498 ds.dargs.whichfork = whichfork; in xchk_da_btree()
506 if (whichfork == XFS_ATTR_FORK) { in xchk_da_btree()
Ddabtree.h41 int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_inode_fork.c132 int whichfork, in xfs_init_local_fork() argument
136 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_init_local_fork()
172 int whichfork, in xfs_iformat_local() argument
180 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local()
184 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local()
191 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local()
203 int whichfork) in xfs_iformat_extents() argument
206 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iformat_extents()
207 int state = xfs_bmap_fork_to_state(whichfork); in xfs_iformat_extents()
208 int nex = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_iformat_extents()
[all …]
Dxfs_bmap.c57 int whichfork) /* data or attr fork */ in xfs_bmap_compute_maxlevels() argument
81 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_compute_maxlevels()
98 mp->m_bm_maxlevels[whichfork] = level; in xfs_bmap_compute_maxlevels()
125 static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork) in xfs_bmap_needs_btree() argument
127 return whichfork != XFS_COW_FORK && in xfs_bmap_needs_btree()
128 XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_EXTENTS && in xfs_bmap_needs_btree()
129 XFS_IFORK_NEXTENTS(ip, whichfork) > in xfs_bmap_needs_btree()
130 XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_needs_btree()
136 static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork) in xfs_bmap_wants_extents() argument
138 return whichfork != XFS_COW_FORK && in xfs_bmap_wants_extents()
[all …]
Dxfs_bmap.h187 void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork);
191 void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork);
193 xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork);
195 xfs_fileoff_t *last_block, int whichfork);
197 int whichfork);
198 int xfs_bmap_one_block(struct xfs_inode *ip, int whichfork);
211 int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork,
227 int xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork,
256 enum xfs_bmap_intent_type type, int whichfork,
264 static inline int xfs_bmap_fork_to_state(int whichfork) in xfs_bmap_fork_to_state() argument
[all …]
Dxfs_rmap.h23 int whichfork) in xfs_rmap_ino_bmbt_owner() argument
28 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_bmbt_owner()
36 int whichfork, in xfs_rmap_ino_owner() argument
42 if (whichfork == XFS_ATTR_FORK) in xfs_rmap_ino_owner()
189 int whichfork, struct xfs_bmbt_irec *imap);
191 int whichfork, struct xfs_bmbt_irec *imap);
193 struct xfs_inode *ip, int whichfork,
203 uint64_t owner, int whichfork, xfs_fileoff_t startoff,
Dxfs_da_btree.h61 int whichfork; /* data or attribute fork */ member
151 int level, struct xfs_buf **bpp, int whichfork);
184 struct xfs_buf **bp, int whichfork);
187 struct xfs_buf **bpp, int whichfork,
190 xfs_daddr_t mapped_bno, int whichfork,
Dxfs_bmap_btree.c172 cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_bmbt_dup_cursor()
212 cur->bc_private.b.whichfork); in xfs_bmbt_alloc_block()
291 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_private.b.whichfork); in xfs_bmbt_free_block()
309 cur->bc_private.b.whichfork); in xfs_bmbt_get_minrecs()
327 cur->bc_private.b.whichfork); in xfs_bmbt_get_maxrecs()
541 int whichfork) /* data or attr fork */ in xfs_bmbt_init_cursor() argument
543 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmbt_init_cursor()
545 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmbt_init_cursor()
561 cur->bc_private.b.forksize = XFS_IFORK_SIZE(ip, whichfork); in xfs_bmbt_init_cursor()
565 cur->bc_private.b.whichfork = whichfork; in xfs_bmbt_init_cursor()
[all …]
Dxfs_da_btree.c320 int whichfork) in xfs_da3_node_create() argument
333 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create()
553 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); in xfs_da3_root_split()
616 (args->whichfork == XFS_DATA_FORK) ? args->geo->leafblk : 0, in xfs_da3_root_split()
617 level + 1, &bp, args->whichfork); in xfs_da3_root_split()
676 useextra = state->extravalid && state->args->whichfork == XFS_ATTR_FORK; in xfs_da3_node_split()
691 &newblk->bp, state->args->whichfork); in xfs_da3_node_split()
911 if (state->args->whichfork == XFS_DATA_FORK) in xfs_da3_node_add()
1095 args->whichfork); in xfs_da3_root_join()
1210 blkno, -1, &bp, state->args->whichfork); in xfs_da3_node_toosmall()
[all …]
Dxfs_inode_buf.c381 int whichfork) in xfs_dinode_verify_fork() argument
383 uint32_t di_nextents = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_dinode_verify_fork()
385 switch (XFS_DFORK_FORMAT(dip, whichfork)) { in xfs_dinode_verify_fork()
390 if (whichfork == XFS_DATA_FORK) { in xfs_dinode_verify_fork()
394 XFS_DFORK_SIZE(dip, mp, whichfork)) in xfs_dinode_verify_fork()
401 if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork)) in xfs_dinode_verify_fork()
405 if (whichfork == XFS_ATTR_FORK) { in xfs_dinode_verify_fork()
Dxfs_rmap.c2164 int whichfork, in xfs_rmap_finish_one() argument
2184 trace_xfs_rmap_deferred(mp, agno, type, bno, owner, whichfork, in xfs_rmap_finish_one()
2221 xfs_rmap_ino_owner(&oinfo, owner, whichfork, startoff); in xfs_rmap_finish_one()
2269 int whichfork) in xfs_rmap_update_is_needed() argument
2271 return xfs_sb_version_hasrmapbt(&mp->m_sb) && whichfork != XFS_COW_FORK; in xfs_rmap_update_is_needed()
2283 int whichfork, in __xfs_rmap_add() argument
2292 owner, whichfork, in __xfs_rmap_add()
2301 ri->ri_whichfork = whichfork; in __xfs_rmap_add()
2313 int whichfork, in xfs_rmap_map_extent() argument
2316 if (!xfs_rmap_update_is_needed(tp->t_mountp, whichfork)) in xfs_rmap_map_extent()
[all …]
Dxfs_dir2.c273 args->whichfork = XFS_DATA_FORK; in xfs_dir_createname()
367 args->whichfork = XFS_DATA_FORK; in xfs_dir_lookup()
441 args->whichfork = XFS_DATA_FORK; in xfs_dir_removename()
502 args->whichfork = XFS_DATA_FORK; in xfs_dir_replace()
Dxfs_bmap_btree.h103 int whichfork, xfs_ino_t new_owner,
/linux-4.19.296/fs/xfs/
Dxfs_bmap_util.h34 int whichfork, int *eof);
54 int whichfork, struct xfs_bmbt_irec *rec,
82 int whichfork, xfs_extnum_t *nextents,
Dxfs_trans_bmap.c48 int whichfork, in xfs_trans_log_finish_bmap_update() argument
56 error = xfs_bmap_finish_one(tp, ip, type, whichfork, startoff, in xfs_trans_log_finish_bmap_update()
113 int whichfork, in xfs_trans_set_bmap_flags() argument
127 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_bmap_flags()
Dxfs_trans_rmap.c25 int whichfork, in xfs_trans_set_rmap_flags() argument
31 if (whichfork == XFS_ATTR_FORK) in xfs_trans_set_rmap_flags()
86 int whichfork, in xfs_trans_log_finish_rmap_update() argument
95 error = xfs_rmap_finish_one(tp, type, owner, whichfork, startoff, in xfs_trans_log_finish_rmap_update()
Dxfs_bmap_util.c195 int whichfork, in xfs_bmap_eof() argument
201 error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, eof); in xfs_bmap_eof()
344 int whichfork, in xfs_bmap_count_blocks() argument
360 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_count_blocks()
364 switch (XFS_IFORK_FORMAT(ip, whichfork)) { in xfs_bmap_count_blocks()
370 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_count_blocks()
514 int whichfork, lock, error = 0; in xfs_getbmap() local
539 whichfork = XFS_ATTR_FORK; in xfs_getbmap()
541 whichfork = XFS_COW_FORK; in xfs_getbmap()
543 whichfork = XFS_DATA_FORK; in xfs_getbmap()
[all …]
Dxfs_rmap_item.c414 int whichfork; in xfs_rui_recover() local
470 whichfork = (rmap->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ? in xfs_rui_recover()
502 rmap->me_owner, whichfork, in xfs_rui_recover()
Dxfs_bmap_item.c390 int whichfork; in xfs_bui_recover() local
463 whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_recover()
478 error = xfs_trans_log_finish_bmap_update(tp, budp, type, ip, whichfork, in xfs_bui_recover()
Dxfs_trans.h255 uint64_t owner, int whichfork, xfs_fileoff_t startoff,
279 struct xfs_inode *ip, int whichfork, xfs_fileoff_t startoff,
Dxfs_inode.h449 int whichfork, in xfs_itruncate_extents() argument
452 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()

12