Lines Matching refs:whichfork

53 	int		whichfork)	/* data or attr fork */  in xfs_bmap_compute_maxlevels()  argument
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 != XFS_COW_FORK && in xfs_bmap_wants_extents()
139 ifp->if_nextents <= XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_wants_extents()
215 int whichfork) in xfs_bmap_forkoff_reset() argument
217 if (whichfork == XFS_ATTR_FORK && in xfs_bmap_forkoff_reset()
318 int whichfork) /* data or attr fork */ in xfs_bmap_check_leaf_extents() argument
321 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_check_leaf_extents()
517 #define xfs_bmap_check_leaf_extents(cur, ip, whichfork) do { } while (0) argument
588 int whichfork) /* data or attr fork */ in xfs_bmap_btree_to_extents() argument
590 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_btree_to_extents()
601 if (!xfs_bmap_wants_extents(ip, whichfork)) in xfs_bmap_btree_to_extents()
605 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmap_btree_to_extents()
625 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xfs_bmap_btree_to_extents()
632 xfs_iroot_realloc(ip, -1, whichfork); in xfs_bmap_btree_to_extents()
636 *logflagsp |= XFS_ILOG_CORE | xfs_ilog_fext(whichfork); in xfs_bmap_btree_to_extents()
651 int whichfork) /* data or attr fork */ in xfs_bmap_extents_to_btree() argument
669 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmap_extents_to_btree()
670 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_extents_to_btree()
677 xfs_iroot_realloc(ip, 1, whichfork); in xfs_bmap_extents_to_btree()
690 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_extents_to_btree()
699 xfs_rmap_ino_bmbt_owner(&args.oinfo, ip->i_ino, whichfork); in xfs_bmap_extents_to_btree()
774 *logflagsp = XFS_ILOG_CORE | xfs_ilog_fbroot(whichfork); in xfs_bmap_extents_to_btree()
780 xfs_iroot_realloc(ip, -1, whichfork); in xfs_bmap_extents_to_btree()
798 int whichfork) in xfs_bmap_local_to_extents_empty() argument
800 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_local_to_extents_empty()
802 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmap_local_to_extents_empty()
807 xfs_bmap_forkoff_reset(ip, whichfork); in xfs_bmap_local_to_extents_empty()
823 int whichfork, in xfs_bmap_local_to_extents() argument
841 ASSERT(!(S_ISREG(VFS_I(ip)->i_mode) && whichfork == XFS_DATA_FORK)); in xfs_bmap_local_to_extents()
842 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_local_to_extents()
846 xfs_bmap_local_to_extents_empty(tp, ip, whichfork); in xfs_bmap_local_to_extents()
857 xfs_rmap_ino_owner(&args.oinfo, ip->i_ino, whichfork, 0); in xfs_bmap_local_to_extents()
896 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_bmap_local_to_extents()
897 xfs_bmap_local_to_extents_empty(tp, ip, whichfork); in xfs_bmap_local_to_extents()
914 flags |= xfs_ilog_fext(whichfork); in xfs_bmap_local_to_extents()
1015 dargs.whichfork = XFS_DATA_FORK; in xfs_bmap_add_attrfork_local()
1179 int whichfork = cur->bc_ino.whichfork; in xfs_iread_bmbt_block() local
1180 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iread_bmbt_block()
1201 fa = xfs_bmap_validate_extent(ip, whichfork, &new); in xfs_iread_bmbt_block()
1209 xfs_bmap_fork_to_state(whichfork)); in xfs_iread_bmbt_block()
1211 xfs_bmap_fork_to_state(whichfork), _THIS_IP_); in xfs_iread_bmbt_block()
1225 int whichfork) in xfs_iread_extents() argument
1228 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iread_extents()
1242 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_iread_extents()
1274 int whichfork) /* data or attr fork */ in xfs_bmap_first_unused() argument
1276 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_first_unused()
1291 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_first_unused()
1323 int whichfork) /* data or attr fork */ in xfs_bmap_last_before() argument
1325 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_last_before()
1343 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_last_before()
1357 int whichfork, in xfs_bmap_last_extent() argument
1361 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_last_extent()
1366 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_last_extent()
1391 int whichfork) in xfs_bmap_isaeof() argument
1398 error = xfs_bmap_last_extent(NULL, bma->ip, whichfork, &rec, in xfs_bmap_isaeof()
1427 int whichfork) in xfs_bmap_last_offset() argument
1429 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_last_offset()
1442 error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, &is_empty); in xfs_bmap_last_offset()
1458 int whichfork) /* data or attr fork */ in xfs_bmap_one_block() argument
1460 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_one_block()
1466 if (whichfork == XFS_DATA_FORK) in xfs_bmap_one_block()
1477 if (rval && whichfork == XFS_DATA_FORK) in xfs_bmap_one_block()
1492 int whichfork) in xfs_bmap_add_extent_delay_real() argument
1495 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
1503 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_delay_real()
1510 ASSERT(whichfork != XFS_ATTR_FORK); in xfs_bmap_add_extent_delay_real()
1793 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1795 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1880 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1882 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1966 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1968 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1993 xfs_rmap_map_extent(bma->tp, bma->ip, whichfork, new); in xfs_bmap_add_extent_delay_real()
1996 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
2002 whichfork); in xfs_bmap_add_extent_delay_real()
2023 xfs_bmap_check_leaf_extents(bma->cur, bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
2025 if (whichfork != XFS_COW_FORK) in xfs_bmap_add_extent_delay_real()
2040 int whichfork, in xfs_bmap_add_extent_unwritten_real() argument
2054 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_unwritten_real()
2061 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_add_extent_unwritten_real()
2539 xfs_rmap_convert_extent(mp, tp, ip, whichfork, new); in xfs_bmap_add_extent_unwritten_real()
2542 if (xfs_bmap_needs_btree(ip, whichfork)) { in xfs_bmap_add_extent_unwritten_real()
2547 &tmp_logflags, whichfork); in xfs_bmap_add_extent_unwritten_real()
2559 xfs_bmap_check_leaf_extents(*curp, ip, whichfork); in xfs_bmap_add_extent_unwritten_real()
2574 int whichfork, in xfs_bmap_add_extent_hole_delay() argument
2583 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_hole_delay()
2586 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_add_extent_hole_delay()
2715 int whichfork, in xfs_bmap_add_extent_hole_real() argument
2722 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_add_extent_hole_real()
2730 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_hole_real()
2797 rval = XFS_ILOG_CORE | xfs_ilog_fext(whichfork); in xfs_bmap_add_extent_hole_real()
2840 rval = xfs_ilog_fext(whichfork); in xfs_bmap_add_extent_hole_real()
2870 rval = xfs_ilog_fext(whichfork); in xfs_bmap_add_extent_hole_real()
2896 rval = XFS_ILOG_CORE | xfs_ilog_fext(whichfork); in xfs_bmap_add_extent_hole_real()
2919 xfs_rmap_map_extent(tp, ip, whichfork, new); in xfs_bmap_add_extent_hole_real()
2922 if (xfs_bmap_needs_btree(ip, whichfork)) { in xfs_bmap_add_extent_hole_real()
2927 &tmp_logflags, whichfork); in xfs_bmap_add_extent_hole_real()
2938 xfs_bmap_check_leaf_extents(cur, ip, whichfork); in xfs_bmap_add_extent_hole_real()
3874 int whichfork = xfs_bmapi_whichfork(flags); in xfs_bmapi_read() local
3875 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmapi_read()
3901 error = xfs_iread_extents(NULL, ip, whichfork); in xfs_bmapi_read()
3961 int whichfork, in xfs_bmapi_reserve_delalloc() argument
3970 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmapi_reserve_delalloc()
3987 if (whichfork == XFS_COW_FORK) { in xfs_bmapi_reserve_delalloc()
4033 xfs_bmap_add_extent_hole_delay(ip, whichfork, icur, got); in xfs_bmapi_reserve_delalloc()
4040 if (whichfork == XFS_DATA_FORK && prealloc) in xfs_bmapi_reserve_delalloc()
4042 if (whichfork == XFS_COW_FORK && (prealloc || aoff < off || alen > len)) in xfs_bmapi_reserve_delalloc()
4061 int whichfork = xfs_bmapi_whichfork(bma->flags); in xfs_bmap_alloc_userdata() local
4071 if (whichfork == XFS_DATA_FORK) { in xfs_bmap_alloc_userdata()
4077 error = xfs_bmap_isaeof(bma, whichfork); in xfs_bmap_alloc_userdata()
4094 int whichfork = xfs_bmapi_whichfork(bma->flags); in xfs_bmapi_allocate() local
4095 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); in xfs_bmapi_allocate()
4136 bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork); in xfs_bmapi_allocate()
4156 error = xfs_bmap_add_extent_delay_real(bma, whichfork); in xfs_bmapi_allocate()
4159 whichfork, &bma->icur, &bma->cur, &bma->got, in xfs_bmapi_allocate()
4188 int whichfork = xfs_bmapi_whichfork(flags); in xfs_bmapi_convert_unwritten() local
4189 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4210 bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4226 error = xfs_bmap_add_extent_unwritten_real(bma->tp, bma->ip, whichfork, in xfs_bmapi_convert_unwritten()
4239 if (whichfork != XFS_COW_FORK) in xfs_bmapi_convert_unwritten()
4284 int whichfork, in xfs_bmapi_finish() argument
4287 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); in xfs_bmapi_finish()
4289 if ((bma->logflags & xfs_ilog_fext(whichfork)) && in xfs_bmapi_finish()
4291 bma->logflags &= ~xfs_ilog_fext(whichfork); in xfs_bmapi_finish()
4292 else if ((bma->logflags & xfs_ilog_fbroot(whichfork)) && in xfs_bmapi_finish()
4294 bma->logflags &= ~xfs_ilog_fbroot(whichfork); in xfs_bmapi_finish()
4325 int whichfork = xfs_bmapi_whichfork(flags); in xfs_bmapi_write() local
4326 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmapi_write()
4378 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmapi_write()
4387 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_write()
4445 if (whichfork == XFS_COW_FORK) in xfs_bmapi_write()
4480 whichfork); in xfs_bmapi_write()
4485 ifp->if_nextents > XFS_IFORK_MAXEXT(ip, whichfork)); in xfs_bmapi_write()
4486 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_write()
4491 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_write()
4504 int whichfork, in xfs_bmapi_convert_delalloc() argument
4509 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmapi_convert_delalloc()
4517 if (whichfork == XFS_COW_FORK) in xfs_bmapi_convert_delalloc()
4539 WARN_ON_ONCE(whichfork != XFS_COW_FORK); in xfs_bmapi_convert_delalloc()
4559 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_convert_delalloc()
4575 if (whichfork == XFS_COW_FORK) in xfs_bmapi_convert_delalloc()
4599 if (whichfork == XFS_COW_FORK) in xfs_bmapi_convert_delalloc()
4603 whichfork); in xfs_bmapi_convert_delalloc()
4607 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_convert_delalloc()
4613 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_convert_delalloc()
4634 int whichfork = xfs_bmapi_whichfork(flags); in xfs_bmapi_remap() local
4637 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmapi_remap()
4655 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmapi_remap()
4670 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmapi_remap()
4682 error = xfs_bmap_add_extent_hole_real(tp, ip, whichfork, &icur, in xfs_bmapi_remap()
4687 error = xfs_bmap_btree_to_extents(tp, ip, cur, &logflags, whichfork); in xfs_bmapi_remap()
4790 int whichfork, in xfs_bmap_del_extent_delay() argument
4796 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_del_extent_delay()
4801 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_del_extent_delay()
4807 isrt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(ip); in xfs_bmap_del_extent_delay()
4999 int whichfork, /* data or attr fork */ in xfs_bmap_del_extent_real() argument
5016 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_del_extent_real()
5022 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_del_extent_real()
5043 ifp->if_nextents >= XFS_IFORK_MAXEXT(ip, whichfork) && in xfs_bmap_del_extent_real()
5048 if (whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip)) { in xfs_bmap_del_extent_real()
5104 flags |= xfs_ilog_fext(whichfork); in xfs_bmap_del_extent_real()
5123 flags |= xfs_ilog_fext(whichfork); in xfs_bmap_del_extent_real()
5137 flags |= xfs_ilog_fext(whichfork); in xfs_bmap_del_extent_real()
5208 flags |= xfs_ilog_fext(whichfork); in xfs_bmap_del_extent_real()
5217 xfs_rmap_unmap_extent(tp, ip, whichfork, del); in xfs_bmap_del_extent_real()
5223 if (xfs_is_reflink_inode(ip) && whichfork == XFS_DATA_FORK) { in xfs_bmap_del_extent_real()
5276 int whichfork; /* data or attribute fork */ in __xfs_bunmapi() local
5287 whichfork = xfs_bmapi_whichfork(flags); in __xfs_bunmapi()
5288 ASSERT(whichfork != XFS_COW_FORK); in __xfs_bunmapi()
5289 ifp = XFS_IFORK_PTR(ip, whichfork); in __xfs_bunmapi()
5304 if (tp && xfs_is_reflink_inode(ip) && whichfork == XFS_DATA_FORK) in __xfs_bunmapi()
5310 (error = xfs_iread_extents(tp, ip, whichfork))) in __xfs_bunmapi()
5317 isrt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(ip); in __xfs_bunmapi()
5329 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in __xfs_bunmapi()
5443 whichfork, &icur, &cur, &del, in __xfs_bunmapi()
5502 ip, whichfork, &icur, &cur, in __xfs_bunmapi()
5511 ip, whichfork, &icur, &cur, in __xfs_bunmapi()
5521 error = xfs_bmap_del_extent_delay(ip, whichfork, &icur, in __xfs_bunmapi()
5525 &del, &tmp_logflags, whichfork, in __xfs_bunmapi()
5557 if (xfs_bmap_needs_btree(ip, whichfork)) { in __xfs_bunmapi()
5560 &tmp_logflags, whichfork); in __xfs_bunmapi()
5564 whichfork); in __xfs_bunmapi()
5572 if ((logflags & xfs_ilog_fext(whichfork)) && in __xfs_bunmapi()
5574 logflags &= ~xfs_ilog_fext(whichfork); in __xfs_bunmapi()
5575 else if ((logflags & xfs_ilog_fbroot(whichfork)) && in __xfs_bunmapi()
5577 logflags &= ~xfs_ilog_fbroot(whichfork); in __xfs_bunmapi()
5650 int whichfork, in xfs_bmse_merge() argument
5658 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmse_merge()
5709 error = xfs_bmap_btree_to_extents(tp, ip, cur, logflags, whichfork); in xfs_bmse_merge()
5716 xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), icur, in xfs_bmse_merge()
5720 xfs_rmap_unmap_extent(tp, ip, whichfork, got); in xfs_bmse_merge()
5723 xfs_rmap_map_extent(tp, ip, whichfork, &new); in xfs_bmse_merge()
5731 int whichfork, in xfs_bmap_shift_update_extent() argument
5760 xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), icur, in xfs_bmap_shift_update_extent()
5764 xfs_rmap_unmap_extent(tp, ip, whichfork, &prev); in xfs_bmap_shift_update_extent()
5765 xfs_rmap_map_extent(tp, ip, whichfork, got); in xfs_bmap_shift_update_extent()
5777 int whichfork = XFS_DATA_FORK; in xfs_bmap_collapse_extents() local
5779 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_collapse_extents()
5798 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_collapse_extents()
5804 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_collapse_extents()
5825 error = xfs_bmse_merge(tp, ip, whichfork, in xfs_bmap_collapse_extents()
5839 error = xfs_bmap_shift_update_extent(tp, ip, whichfork, &icur, &got, in xfs_bmap_collapse_extents()
5894 int whichfork = XFS_DATA_FORK; in xfs_bmap_insert_extents() local
5896 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_insert_extents()
5915 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_insert_extents()
5921 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_insert_extents()
5965 error = xfs_bmap_shift_update_extent(tp, ip, whichfork, &icur, &got, in xfs_bmap_insert_extents()
5997 int whichfork = XFS_DATA_FORK; in xfs_bmap_split_extent() local
5998 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_split_extent()
6019 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_split_extent()
6038 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_split_extent()
6050 xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), &icur, in xfs_bmap_split_extent()
6086 if (xfs_bmap_needs_btree(ip, whichfork)) { in xfs_bmap_split_extent()
6091 &tmp_logflags, whichfork); in xfs_bmap_split_extent()
6121 int whichfork, in __xfs_bmap_add() argument
6130 ip->i_ino, whichfork, in __xfs_bmap_add()
6139 bi->bi_whichfork = whichfork; in __xfs_bmap_add()
6181 int whichfork, in xfs_bmap_finish_one() argument
6194 ip->i_ino, whichfork, startoff, *blockcount, state); in xfs_bmap_finish_one()
6196 if (WARN_ON_ONCE(whichfork != XFS_DATA_FORK)) in xfs_bmap_finish_one()
6225 int whichfork, in xfs_bmap_validate_extent() argument
6239 if (isrt && whichfork == XFS_DATA_FORK) { in xfs_bmap_validate_extent()
6253 if (irec->br_state != XFS_EXT_NORM && whichfork != XFS_DATA_FORK) in xfs_bmap_validate_extent()