Lines Matching refs:whichfork

53 	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
143 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_wants_extents()
145 return whichfork != XFS_COW_FORK && in xfs_bmap_wants_extents()
147 ifp->if_nextents <= XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_wants_extents()
216 int whichfork) in xfs_bmap_forkoff_reset() argument
218 if (whichfork == XFS_ATTR_FORK && in xfs_bmap_forkoff_reset()
319 int whichfork) /* data or attr fork */ in xfs_bmap_check_leaf_extents() argument
322 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_check_leaf_extents()
518 #define xfs_bmap_check_leaf_extents(cur, ip, whichfork) do { } while (0) argument
539 int whichfork) /* data or attr fork */ in xfs_bmap_btree_to_extents() argument
541 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_btree_to_extents()
552 if (!xfs_bmap_wants_extents(ip, whichfork)) in xfs_bmap_btree_to_extents()
556 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmap_btree_to_extents()
576 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xfs_bmap_btree_to_extents()
587 xfs_iroot_realloc(ip, -1, whichfork); in xfs_bmap_btree_to_extents()
590 *logflagsp |= XFS_ILOG_CORE | xfs_ilog_fext(whichfork); in xfs_bmap_btree_to_extents()
605 int whichfork) /* data or attr fork */ in xfs_bmap_extents_to_btree() argument
623 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmap_extents_to_btree()
624 ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_extents_to_btree()
631 xfs_iroot_realloc(ip, 1, whichfork); in xfs_bmap_extents_to_btree()
643 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_extents_to_btree()
652 xfs_rmap_ino_bmbt_owner(&args.oinfo, ip->i_ino, whichfork); in xfs_bmap_extents_to_btree()
716 *logflagsp = XFS_ILOG_CORE | xfs_ilog_fbroot(whichfork); in xfs_bmap_extents_to_btree()
722 xfs_iroot_realloc(ip, -1, whichfork); in xfs_bmap_extents_to_btree()
740 int whichfork) in xfs_bmap_local_to_extents_empty() argument
742 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_local_to_extents_empty()
744 ASSERT(whichfork != XFS_COW_FORK); in xfs_bmap_local_to_extents_empty()
749 xfs_bmap_forkoff_reset(ip, whichfork); in xfs_bmap_local_to_extents_empty()
763 int whichfork, in xfs_bmap_local_to_extents() argument
781 ASSERT(!(S_ISREG(VFS_I(ip)->i_mode) && whichfork == XFS_DATA_FORK)); in xfs_bmap_local_to_extents()
782 ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_local_to_extents()
786 xfs_bmap_local_to_extents_empty(tp, ip, whichfork); in xfs_bmap_local_to_extents()
798 xfs_rmap_ino_owner(&args.oinfo, ip->i_ino, whichfork, 0); in xfs_bmap_local_to_extents()
831 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_bmap_local_to_extents()
832 xfs_bmap_local_to_extents_empty(tp, ip, whichfork); in xfs_bmap_local_to_extents()
848 flags |= xfs_ilog_fext(whichfork); in xfs_bmap_local_to_extents()
951 dargs.whichfork = XFS_DATA_FORK; in xfs_bmap_add_attrfork_local()
1094 int whichfork, in xfs_bmap_complain_bad_rec() argument
1101 switch (whichfork) { in xfs_bmap_complain_bad_rec()
1134 int whichfork = cur->bc_ino.whichfork; in xfs_iread_bmbt_block() local
1135 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_iread_bmbt_block()
1156 fa = xfs_bmap_validate_extent(ip, whichfork, &new); in xfs_iread_bmbt_block()
1161 return xfs_bmap_complain_bad_rec(ip, whichfork, fa, in xfs_iread_bmbt_block()
1165 xfs_bmap_fork_to_state(whichfork)); in xfs_iread_bmbt_block()
1167 xfs_bmap_fork_to_state(whichfork), _THIS_IP_); in xfs_iread_bmbt_block()
1181 int whichfork) in xfs_iread_extents() argument
1184 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_iread_extents()
1196 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_iread_extents()
1232 int whichfork) /* data or attr fork */ in xfs_bmap_first_unused() argument
1234 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_first_unused()
1248 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_first_unused()
1279 int whichfork) /* data or attr fork */ in xfs_bmap_last_before() argument
1281 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_last_before()
1298 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_last_before()
1311 int whichfork, in xfs_bmap_last_extent() argument
1315 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_last_extent()
1319 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_last_extent()
1343 int whichfork) in xfs_bmap_isaeof() argument
1350 error = xfs_bmap_last_extent(NULL, bma->ip, whichfork, &rec, in xfs_bmap_isaeof()
1379 int whichfork) in xfs_bmap_last_offset() argument
1381 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_last_offset()
1394 error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, &is_empty); in xfs_bmap_last_offset()
1412 int whichfork) in xfs_bmap_add_extent_delay_real() argument
1415 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
1423 uint32_t state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_delay_real()
1430 ASSERT(whichfork != XFS_ATTR_FORK); in xfs_bmap_add_extent_delay_real()
1718 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1720 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1806 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1808 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1893 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1895 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1920 xfs_rmap_map_extent(bma->tp, bma->ip, whichfork, new); in xfs_bmap_add_extent_delay_real()
1923 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1929 whichfork); in xfs_bmap_add_extent_delay_real()
1948 xfs_bmap_check_leaf_extents(bma->cur, bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
1950 if (whichfork != XFS_COW_FORK) in xfs_bmap_add_extent_delay_real()
1965 int whichfork, in xfs_bmap_add_extent_unwritten_real() argument
1979 uint32_t state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_unwritten_real()
1986 ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_add_extent_unwritten_real()
2464 xfs_rmap_convert_extent(mp, tp, ip, whichfork, new); in xfs_bmap_add_extent_unwritten_real()
2467 if (xfs_bmap_needs_btree(ip, whichfork)) { in xfs_bmap_add_extent_unwritten_real()
2472 &tmp_logflags, whichfork); in xfs_bmap_add_extent_unwritten_real()
2484 xfs_bmap_check_leaf_extents(*curp, ip, whichfork); in xfs_bmap_add_extent_unwritten_real()
2499 int whichfork, in xfs_bmap_add_extent_hole_delay() argument
2508 uint32_t state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_hole_delay()
2511 ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_add_extent_hole_delay()
2640 int whichfork, in xfs_bmap_add_extent_hole_real() argument
2647 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_add_extent_hole_real()
2655 uint32_t state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_hole_real()
2722 rval = XFS_ILOG_CORE | xfs_ilog_fext(whichfork); in xfs_bmap_add_extent_hole_real()
2765 rval = xfs_ilog_fext(whichfork); in xfs_bmap_add_extent_hole_real()
2795 rval = xfs_ilog_fext(whichfork); in xfs_bmap_add_extent_hole_real()
2821 rval = XFS_ILOG_CORE | xfs_ilog_fext(whichfork); in xfs_bmap_add_extent_hole_real()
2844 xfs_rmap_map_extent(tp, ip, whichfork, new); in xfs_bmap_add_extent_hole_real()
2847 if (xfs_bmap_needs_btree(ip, whichfork)) { in xfs_bmap_add_extent_hole_real()
2852 &tmp_logflags, whichfork); in xfs_bmap_add_extent_hole_real()
2863 xfs_bmap_check_leaf_extents(cur, ip, whichfork); in xfs_bmap_add_extent_hole_real()
3847 int whichfork = xfs_bmapi_whichfork(flags); in xfs_bmapi_read() local
3848 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmapi_read()
3873 error = xfs_iread_extents(NULL, ip, whichfork); in xfs_bmapi_read()
3932 int whichfork, in xfs_bmapi_reserve_delalloc() argument
3941 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmapi_reserve_delalloc()
3947 whichfork == XFS_COW_FORK && !prealloc; in xfs_bmapi_reserve_delalloc()
4015 xfs_bmap_add_extent_hole_delay(ip, whichfork, icur, got); in xfs_bmapi_reserve_delalloc()
4022 if (whichfork == XFS_DATA_FORK && prealloc) in xfs_bmapi_reserve_delalloc()
4024 if (whichfork == XFS_COW_FORK && (prealloc || aoff < off || alen > len)) in xfs_bmapi_reserve_delalloc()
4053 int whichfork = xfs_bmapi_whichfork(bma->flags); in xfs_bmapi_allocate() local
4054 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_allocate()
4089 if (whichfork == XFS_DATA_FORK || whichfork == XFS_COW_FORK) { in xfs_bmapi_allocate()
4095 error = xfs_bmap_isaeof(bma, whichfork); in xfs_bmapi_allocate()
4119 bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork); in xfs_bmapi_allocate()
4139 error = xfs_bmap_add_extent_delay_real(bma, whichfork); in xfs_bmapi_allocate()
4142 whichfork, &bma->icur, &bma->cur, &bma->got, in xfs_bmapi_allocate()
4171 int whichfork = xfs_bmapi_whichfork(flags); in xfs_bmapi_convert_unwritten() local
4172 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4193 bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4209 error = xfs_bmap_add_extent_unwritten_real(bma->tp, bma->ip, whichfork, in xfs_bmapi_convert_unwritten()
4222 if (whichfork != XFS_COW_FORK) in xfs_bmapi_convert_unwritten()
4267 int whichfork, in xfs_bmapi_finish() argument
4270 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_finish()
4272 if ((bma->logflags & xfs_ilog_fext(whichfork)) && in xfs_bmapi_finish()
4274 bma->logflags &= ~xfs_ilog_fext(whichfork); in xfs_bmapi_finish()
4275 else if ((bma->logflags & xfs_ilog_fbroot(whichfork)) && in xfs_bmapi_finish()
4277 bma->logflags &= ~xfs_ilog_fbroot(whichfork); in xfs_bmapi_finish()
4317 int whichfork = xfs_bmapi_whichfork(flags); in xfs_bmapi_write() local
4318 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmapi_write()
4369 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmapi_write()
4377 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_write()
4441 if (whichfork == XFS_COW_FORK) in xfs_bmapi_write()
4475 whichfork); in xfs_bmapi_write()
4480 ifp->if_nextents > XFS_IFORK_MAXEXT(ip, whichfork)); in xfs_bmapi_write()
4481 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_write()
4501 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_write()
4514 int whichfork, in xfs_bmapi_convert_one_delalloc() argument
4519 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmapi_convert_one_delalloc()
4527 if (whichfork == XFS_COW_FORK) in xfs_bmapi_convert_one_delalloc()
4542 error = xfs_iext_count_may_overflow(ip, whichfork, in xfs_bmapi_convert_one_delalloc()
4557 WARN_ON_ONCE(whichfork != XFS_COW_FORK); in xfs_bmapi_convert_one_delalloc()
4580 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_convert_one_delalloc()
4596 if (whichfork == XFS_COW_FORK) in xfs_bmapi_convert_one_delalloc()
4619 if (whichfork == XFS_COW_FORK) in xfs_bmapi_convert_one_delalloc()
4623 whichfork); in xfs_bmapi_convert_one_delalloc()
4627 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_convert_one_delalloc()
4633 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_convert_one_delalloc()
4647 int whichfork, in xfs_bmapi_convert_delalloc() argument
4661 error = xfs_bmapi_convert_one_delalloc(ip, whichfork, offset, in xfs_bmapi_convert_delalloc()
4684 int whichfork = xfs_bmapi_whichfork(flags); in xfs_bmapi_remap() local
4687 ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmapi_remap()
4704 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmapi_remap()
4718 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmapi_remap()
4730 error = xfs_bmap_add_extent_hole_real(tp, ip, whichfork, &icur, in xfs_bmapi_remap()
4735 error = xfs_bmap_btree_to_extents(tp, ip, cur, &logflags, whichfork); in xfs_bmapi_remap()
4838 int whichfork, in xfs_bmap_del_extent_delay() argument
4844 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_del_extent_delay()
4849 uint32_t state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_del_extent_delay()
4855 isrt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(ip); in xfs_bmap_del_extent_delay()
5046 int whichfork, /* data or attr fork */ in xfs_bmap_del_extent_real() argument
5062 uint32_t state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_del_extent_real()
5070 ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_del_extent_real()
5090 ifp->if_nextents >= XFS_IFORK_MAXEXT(ip, whichfork) && in xfs_bmap_del_extent_real()
5095 if (whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip)) { in xfs_bmap_del_extent_real()
5136 *logflagsp |= xfs_ilog_fext(whichfork); in xfs_bmap_del_extent_real()
5153 *logflagsp |= xfs_ilog_fext(whichfork); in xfs_bmap_del_extent_real()
5167 *logflagsp |= xfs_ilog_fext(whichfork); in xfs_bmap_del_extent_real()
5234 *logflagsp |= xfs_ilog_fext(whichfork); in xfs_bmap_del_extent_real()
5243 xfs_rmap_unmap_extent(tp, ip, whichfork, del); in xfs_bmap_del_extent_real()
5249 if (xfs_is_reflink_inode(ip) && whichfork == XFS_DATA_FORK) { in xfs_bmap_del_extent_real()
5303 int whichfork; /* data or attribute fork */ in __xfs_bunmapi() local
5312 whichfork = xfs_bmapi_whichfork(flags); in __xfs_bunmapi()
5313 ASSERT(whichfork != XFS_COW_FORK); in __xfs_bunmapi()
5314 ifp = xfs_ifork_ptr(ip, whichfork); in __xfs_bunmapi()
5324 error = xfs_iread_extents(tp, ip, whichfork); in __xfs_bunmapi()
5333 isrt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(ip); in __xfs_bunmapi()
5345 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in __xfs_bunmapi()
5441 whichfork, &icur, &cur, &del, in __xfs_bunmapi()
5500 ip, whichfork, &icur, &cur, in __xfs_bunmapi()
5509 ip, whichfork, &icur, &cur, in __xfs_bunmapi()
5519 error = xfs_bmap_del_extent_delay(ip, whichfork, &icur, in __xfs_bunmapi()
5523 &del, &tmp_logflags, whichfork, in __xfs_bunmapi()
5554 if (xfs_bmap_needs_btree(ip, whichfork)) { in __xfs_bunmapi()
5557 &tmp_logflags, whichfork); in __xfs_bunmapi()
5561 whichfork); in __xfs_bunmapi()
5569 if ((logflags & xfs_ilog_fext(whichfork)) && in __xfs_bunmapi()
5571 logflags &= ~xfs_ilog_fext(whichfork); in __xfs_bunmapi()
5572 else if ((logflags & xfs_ilog_fbroot(whichfork)) && in __xfs_bunmapi()
5574 logflags &= ~xfs_ilog_fbroot(whichfork); in __xfs_bunmapi()
5647 int whichfork, in xfs_bmse_merge() argument
5655 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmse_merge()
5706 error = xfs_bmap_btree_to_extents(tp, ip, cur, logflags, whichfork); in xfs_bmse_merge()
5713 xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), icur, in xfs_bmse_merge()
5717 xfs_rmap_unmap_extent(tp, ip, whichfork, got); in xfs_bmse_merge()
5720 xfs_rmap_map_extent(tp, ip, whichfork, &new); in xfs_bmse_merge()
5728 int whichfork, in xfs_bmap_shift_update_extent() argument
5757 xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), icur, in xfs_bmap_shift_update_extent()
5761 xfs_rmap_unmap_extent(tp, ip, whichfork, &prev); in xfs_bmap_shift_update_extent()
5762 xfs_rmap_map_extent(tp, ip, whichfork, got); in xfs_bmap_shift_update_extent()
5774 int whichfork = XFS_DATA_FORK; in xfs_bmap_collapse_extents() local
5776 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_collapse_extents()
5794 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_collapse_extents()
5799 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_collapse_extents()
5820 error = xfs_bmse_merge(tp, ip, whichfork, in xfs_bmap_collapse_extents()
5834 error = xfs_bmap_shift_update_extent(tp, ip, whichfork, &icur, &got, in xfs_bmap_collapse_extents()
5889 int whichfork = XFS_DATA_FORK; in xfs_bmap_insert_extents() local
5891 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_insert_extents()
5909 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_insert_extents()
5914 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_insert_extents()
5958 error = xfs_bmap_shift_update_extent(tp, ip, whichfork, &icur, &got, in xfs_bmap_insert_extents()
5990 int whichfork = XFS_DATA_FORK; in xfs_bmap_split_extent() local
5991 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xfs_bmap_split_extent()
6011 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_split_extent()
6029 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_split_extent()
6041 xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), &icur, in xfs_bmap_split_extent()
6077 if (xfs_bmap_needs_btree(ip, whichfork)) { in xfs_bmap_split_extent()
6082 &tmp_logflags, whichfork); in xfs_bmap_split_extent()
6112 int whichfork, in __xfs_bmap_add() argument
6121 ip->i_ino, whichfork, in __xfs_bmap_add()
6130 bi->bi_whichfork = whichfork; in __xfs_bmap_add()
6215 int whichfork, in xfs_bmap_validate_extent() argument
6223 if (XFS_IS_REALTIME_INODE(ip) && whichfork == XFS_DATA_FORK) { in xfs_bmap_validate_extent()
6232 if (irec->br_state != XFS_EXT_NORM && whichfork != XFS_DATA_FORK) in xfs_bmap_validate_extent()