whichfork          73 fs/xfs/libxfs/xfs_attr.c 	args->whichfork = XFS_ATTR_FORK;
whichfork         845 fs/xfs/libxfs/xfs_attr_leaf.c 	nargs.whichfork = XFS_ATTR_FORK;
whichfork        1047 fs/xfs/libxfs/xfs_attr_leaf.c 	nargs.whichfork = XFS_ATTR_FORK;
whichfork          52 fs/xfs/libxfs/xfs_bmap.c 	int		whichfork)	/* data or attr fork */
whichfork          76 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_DATA_FORK) {
whichfork          93 fs/xfs/libxfs/xfs_bmap.c 	mp->m_bm_maxlevels[whichfork] = level;
whichfork         120 fs/xfs/libxfs/xfs_bmap.c static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork)
whichfork         122 fs/xfs/libxfs/xfs_bmap.c 	return whichfork != XFS_COW_FORK &&
whichfork         123 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_EXTENTS &&
whichfork         124 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXTENTS(ip, whichfork) >
whichfork         125 fs/xfs/libxfs/xfs_bmap.c 			XFS_IFORK_MAXEXT(ip, whichfork);
whichfork         131 fs/xfs/libxfs/xfs_bmap.c static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork)
whichfork         133 fs/xfs/libxfs/xfs_bmap.c 	return whichfork != XFS_COW_FORK &&
whichfork         134 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_BTREE &&
whichfork         135 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXTENTS(ip, whichfork) <=
whichfork         136 fs/xfs/libxfs/xfs_bmap.c 			XFS_IFORK_MAXEXT(ip, whichfork);
whichfork         214 fs/xfs/libxfs/xfs_bmap.c 	int		whichfork)
whichfork         216 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_ATTR_FORK &&
whichfork         317 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)	/* data or attr fork */
whichfork         333 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE) {
whichfork         343 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         517 fs/xfs/libxfs/xfs_bmap.c #define xfs_bmap_check_leaf_extents(cur, ip, whichfork)		do { } while (0)
whichfork         587 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)  /* data or attr fork */
whichfork         589 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         600 fs/xfs/libxfs/xfs_bmap.c 	if (!xfs_bmap_wants_extents(ip, whichfork))
whichfork         604 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(whichfork != XFS_COW_FORK);
whichfork         606 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_BTREE);
whichfork         624 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork);
whichfork         631 fs/xfs/libxfs/xfs_bmap.c 	xfs_iroot_realloc(ip, -1, whichfork);
whichfork         634 fs/xfs/libxfs/xfs_bmap.c 	XFS_IFORK_FMT_SET(ip, whichfork, XFS_DINODE_FMT_EXTENTS);
whichfork         635 fs/xfs/libxfs/xfs_bmap.c 	*logflagsp |= XFS_ILOG_CORE | xfs_ilog_fext(whichfork);
whichfork         650 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)	/* data or attr fork */
whichfork         668 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(whichfork != XFS_COW_FORK);
whichfork         669 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         670 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_EXTENTS);
whichfork         676 fs/xfs/libxfs/xfs_bmap.c 	xfs_iroot_realloc(ip, 1, whichfork);
whichfork         689 fs/xfs/libxfs/xfs_bmap.c 	cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
whichfork         694 fs/xfs/libxfs/xfs_bmap.c 	XFS_IFORK_FMT_SET(ip, whichfork, XFS_DINODE_FMT_BTREE);
whichfork         698 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_ino_bmbt_owner(&args.oinfo, ip->i_ino, whichfork);
whichfork         752 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(cnt == XFS_IFORK_NEXTENTS(ip, whichfork));
whichfork         773 fs/xfs/libxfs/xfs_bmap.c 	*logflagsp = XFS_ILOG_CORE | xfs_ilog_fbroot(whichfork);
whichfork         779 fs/xfs/libxfs/xfs_bmap.c 	xfs_iroot_realloc(ip, -1, whichfork);
whichfork         780 fs/xfs/libxfs/xfs_bmap.c 	XFS_IFORK_FMT_SET(ip, whichfork, XFS_DINODE_FMT_EXTENTS);
whichfork         797 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)
whichfork         799 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         801 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(whichfork != XFS_COW_FORK);
whichfork         802 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_LOCAL);
whichfork         804 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_IFORK_NEXTENTS(ip, whichfork) == 0);
whichfork         806 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmap_forkoff_reset(ip, whichfork);
whichfork         811 fs/xfs/libxfs/xfs_bmap.c 	XFS_IFORK_FMT_SET(ip, whichfork, XFS_DINODE_FMT_EXTENTS);
whichfork         822 fs/xfs/libxfs/xfs_bmap.c 	int		whichfork,
whichfork         840 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(!(S_ISREG(VFS_I(ip)->i_mode) && whichfork == XFS_DATA_FORK));
whichfork         841 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         842 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_LOCAL);
whichfork         845 fs/xfs/libxfs/xfs_bmap.c 		xfs_bmap_local_to_extents_empty(tp, ip, whichfork);
whichfork         856 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_ino_owner(&args.oinfo, ip->i_ino, whichfork, 0);
whichfork         891 fs/xfs/libxfs/xfs_bmap.c 	xfs_idata_realloc(ip, -ifp->if_bytes, whichfork);
whichfork         892 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmap_local_to_extents_empty(tp, ip, whichfork);
whichfork         905 fs/xfs/libxfs/xfs_bmap.c 	XFS_IFORK_NEXT_SET(ip, whichfork, 1);
whichfork         909 fs/xfs/libxfs/xfs_bmap.c 	flags |= xfs_ilog_fext(whichfork);
whichfork        1006 fs/xfs/libxfs/xfs_bmap.c 		dargs.whichfork = XFS_DATA_FORK;
whichfork        1164 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)
whichfork        1167 fs/xfs/libxfs/xfs_bmap.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork        1168 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        1169 fs/xfs/libxfs/xfs_bmap.c 	xfs_extnum_t		nextents = XFS_IFORK_NEXTENTS(ip, whichfork);
whichfork        1182 fs/xfs/libxfs/xfs_bmap.c 	if (unlikely(XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE)) {
whichfork        1257 fs/xfs/libxfs/xfs_bmap.c 			fa = xfs_bmap_validate_extent(ip, whichfork, &new);
whichfork        1283 fs/xfs/libxfs/xfs_bmap.c 	if (i != XFS_IFORK_NEXTENTS(ip, whichfork)) {
whichfork        1311 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)	/* data or attr fork */
whichfork        1313 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        1320 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_BTREE ||
whichfork        1321 fs/xfs/libxfs/xfs_bmap.c 	       XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_EXTENTS ||
whichfork        1322 fs/xfs/libxfs/xfs_bmap.c 	       XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_LOCAL);
whichfork        1324 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_LOCAL) {
whichfork        1330 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(tp, ip, whichfork);
whichfork        1362 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)	/* data or attr fork */
whichfork        1364 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        1369 fs/xfs/libxfs/xfs_bmap.c 	switch (XFS_IFORK_FORMAT(ip, whichfork)) {
whichfork        1381 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(tp, ip, whichfork);
whichfork        1395 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        1399 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        1404 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(tp, ip, whichfork);
whichfork        1429 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)
whichfork        1436 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_bmap_last_extent(NULL, bma->ip, whichfork, &rec,
whichfork        1465 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)
whichfork        1473 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_LOCAL)
whichfork        1476 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE &&
whichfork        1477 fs/xfs/libxfs/xfs_bmap.c 	    XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS)
whichfork        1480 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, &is_empty);
whichfork        1496 fs/xfs/libxfs/xfs_bmap.c 	int		whichfork)	/* data or attr fork */
whichfork        1504 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_DATA_FORK)
whichfork        1507 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_IFORK_NEXTENTS(ip, whichfork) != 1)
whichfork        1509 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS)
whichfork        1511 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        1516 fs/xfs/libxfs/xfs_bmap.c 	if (rval && whichfork == XFS_DATA_FORK)
whichfork        1531 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork)
whichfork        1541 fs/xfs/libxfs/xfs_bmap.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork        1551 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(bma->ip, whichfork);
whichfork        1552 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(whichfork != XFS_ATTR_FORK);
whichfork        1553 fs/xfs/libxfs/xfs_bmap.c 	nextents = (whichfork == XFS_COW_FORK ? &bma->ip->i_cnextents :
whichfork        1807 fs/xfs/libxfs/xfs_bmap.c 		if (xfs_bmap_needs_btree(bma->ip, whichfork)) {
whichfork        1809 fs/xfs/libxfs/xfs_bmap.c 					&bma->cur, 1, &tmp_rval, whichfork);
whichfork        1884 fs/xfs/libxfs/xfs_bmap.c 		if (xfs_bmap_needs_btree(bma->ip, whichfork)) {
whichfork        1886 fs/xfs/libxfs/xfs_bmap.c 				&bma->cur, 1, &tmp_rval, whichfork);
whichfork        1964 fs/xfs/libxfs/xfs_bmap.c 		if (xfs_bmap_needs_btree(bma->ip, whichfork)) {
whichfork        1966 fs/xfs/libxfs/xfs_bmap.c 					&bma->cur, 1, &tmp_rval, whichfork);
whichfork        1991 fs/xfs/libxfs/xfs_bmap.c 		xfs_rmap_map_extent(bma->tp, bma->ip, whichfork, new);
whichfork        1994 fs/xfs/libxfs/xfs_bmap.c 	if (xfs_bmap_needs_btree(bma->ip, whichfork)) {
whichfork        2000 fs/xfs/libxfs/xfs_bmap.c 				whichfork);
whichfork        2021 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmap_check_leaf_extents(bma->cur, bma->ip, whichfork);
whichfork        2023 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork != XFS_COW_FORK)
whichfork        2038 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        2052 fs/xfs/libxfs/xfs_bmap.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork        2059 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        2146 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        2147 fs/xfs/libxfs/xfs_bmap.c 				XFS_IFORK_NEXTENTS(ip, whichfork) - 2);
whichfork        2184 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        2185 fs/xfs/libxfs/xfs_bmap.c 				XFS_IFORK_NEXTENTS(ip, whichfork) - 1);
whichfork        2219 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        2220 fs/xfs/libxfs/xfs_bmap.c 				XFS_IFORK_NEXTENTS(ip, whichfork) - 1);
whichfork        2312 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        2313 fs/xfs/libxfs/xfs_bmap.c 				XFS_IFORK_NEXTENTS(ip, whichfork) + 1);
whichfork        2380 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        2381 fs/xfs/libxfs/xfs_bmap.c 				XFS_IFORK_NEXTENTS(ip, whichfork) + 1);
whichfork        2424 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        2425 fs/xfs/libxfs/xfs_bmap.c 				XFS_IFORK_NEXTENTS(ip, whichfork) + 2);
whichfork        2473 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_convert_extent(mp, tp, ip, whichfork, new);
whichfork        2476 fs/xfs/libxfs/xfs_bmap.c 	if (xfs_bmap_needs_btree(ip, whichfork)) {
whichfork        2481 fs/xfs/libxfs/xfs_bmap.c 				&tmp_logflags, whichfork);
whichfork        2493 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmap_check_leaf_extents(*curp, ip, whichfork);
whichfork        2508 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        2517 fs/xfs/libxfs/xfs_bmap.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork        2520 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        2649 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        2656 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        2664 fs/xfs/libxfs/xfs_bmap.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork        2729 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        2730 fs/xfs/libxfs/xfs_bmap.c 			XFS_IFORK_NEXTENTS(ip, whichfork) - 1);
whichfork        2732 fs/xfs/libxfs/xfs_bmap.c 			rval = XFS_ILOG_CORE | xfs_ilog_fext(whichfork);
whichfork        2766 fs/xfs/libxfs/xfs_bmap.c 			rval = xfs_ilog_fext(whichfork);
whichfork        2793 fs/xfs/libxfs/xfs_bmap.c 			rval = xfs_ilog_fext(whichfork);
whichfork        2813 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        2814 fs/xfs/libxfs/xfs_bmap.c 			XFS_IFORK_NEXTENTS(ip, whichfork) + 1);
whichfork        2816 fs/xfs/libxfs/xfs_bmap.c 			rval = XFS_ILOG_CORE | xfs_ilog_fext(whichfork);
whichfork        2833 fs/xfs/libxfs/xfs_bmap.c 		xfs_rmap_map_extent(tp, ip, whichfork, new);
whichfork        2836 fs/xfs/libxfs/xfs_bmap.c 	if (xfs_bmap_needs_btree(ip, whichfork)) {
whichfork        2841 fs/xfs/libxfs/xfs_bmap.c 				&tmp_logflags, whichfork);
whichfork        2852 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmap_check_leaf_extents(cur, ip, whichfork);
whichfork        3811 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork = xfs_bmapi_whichfork(flags);
whichfork        3819 fs/xfs/libxfs/xfs_bmap.c 	    (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS &&
whichfork        3820 fs/xfs/libxfs/xfs_bmap.c 	     XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE),
whichfork        3831 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        3834 fs/xfs/libxfs/xfs_bmap.c 		if (whichfork == XFS_COW_FORK) {
whichfork        3851 fs/xfs/libxfs/xfs_bmap.c 				__func__, ip->i_ino, whichfork);
whichfork        3857 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(NULL, ip, whichfork);
whichfork        3917 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        3926 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        3943 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_COW_FORK) {
whichfork        3989 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmap_add_extent_hole_delay(ip, whichfork, icur, got);
whichfork        3996 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_DATA_FORK && prealloc)
whichfork        3998 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_COW_FORK && (prealloc || aoff < off || alen > len))
whichfork        4017 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork = xfs_bmapi_whichfork(bma->flags);
whichfork        4018 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(bma->ip, whichfork);
whichfork        4047 fs/xfs/libxfs/xfs_bmap.c 		if (whichfork == XFS_DATA_FORK) {
whichfork        4064 fs/xfs/libxfs/xfs_bmap.c 	    !(bma->flags & XFS_BMAPI_METADATA) && whichfork == XFS_DATA_FORK) {
whichfork        4065 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_bmap_isaeof(bma, whichfork);
whichfork        4077 fs/xfs/libxfs/xfs_bmap.c 		bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork);
whichfork        4107 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_bmap_add_extent_delay_real(bma, whichfork);
whichfork        4110 fs/xfs/libxfs/xfs_bmap.c 				whichfork, &bma->icur, &bma->cur, &bma->got,
whichfork        4139 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork = xfs_bmapi_whichfork(flags);
whichfork        4140 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(bma->ip, whichfork);
whichfork        4161 fs/xfs/libxfs/xfs_bmap.c 					bma->ip, whichfork);
whichfork        4177 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_bmap_add_extent_unwritten_real(bma->tp, bma->ip, whichfork,
whichfork        4190 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork != XFS_COW_FORK)
whichfork        4233 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        4236 fs/xfs/libxfs/xfs_bmap.c 	if ((bma->logflags & xfs_ilog_fext(whichfork)) &&
whichfork        4237 fs/xfs/libxfs/xfs_bmap.c 	    XFS_IFORK_FORMAT(bma->ip, whichfork) != XFS_DINODE_FMT_EXTENTS)
whichfork        4238 fs/xfs/libxfs/xfs_bmap.c 		bma->logflags &= ~xfs_ilog_fext(whichfork);
whichfork        4239 fs/xfs/libxfs/xfs_bmap.c 	else if ((bma->logflags & xfs_ilog_fbroot(whichfork)) &&
whichfork        4240 fs/xfs/libxfs/xfs_bmap.c 		 XFS_IFORK_FORMAT(bma->ip, whichfork) != XFS_DINODE_FMT_BTREE)
whichfork        4241 fs/xfs/libxfs/xfs_bmap.c 		bma->logflags &= ~xfs_ilog_fbroot(whichfork);
whichfork        4278 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork;	/* data or attr fork */
whichfork        4293 fs/xfs/libxfs/xfs_bmap.c 	whichfork = xfs_bmapi_whichfork(flags);
whichfork        4299 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_LOCAL);
whichfork        4316 fs/xfs/libxfs/xfs_bmap.c 	    (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS &&
whichfork        4317 fs/xfs/libxfs/xfs_bmap.c 	     XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE),
whichfork        4326 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        4331 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(tp, ip, whichfork);
whichfork        4340 fs/xfs/libxfs/xfs_bmap.c 	bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork);
whichfork        4398 fs/xfs/libxfs/xfs_bmap.c 			if (whichfork == XFS_COW_FORK)
whichfork        4433 fs/xfs/libxfs/xfs_bmap.c 			whichfork);
whichfork        4437 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE ||
whichfork        4438 fs/xfs/libxfs/xfs_bmap.c 	       XFS_IFORK_NEXTENTS(ip, whichfork) >
whichfork        4439 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_MAXEXT(ip, whichfork));
whichfork        4440 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmapi_finish(&bma, whichfork, 0);
whichfork        4445 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmapi_finish(&bma, whichfork, error);
whichfork        4458 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        4463 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        4488 fs/xfs/libxfs/xfs_bmap.c 		WARN_ON_ONCE(whichfork != XFS_COW_FORK);
whichfork        4509 fs/xfs/libxfs/xfs_bmap.c 	bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork);
whichfork        4510 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_COW_FORK)
whichfork        4534 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_COW_FORK)
whichfork        4538 fs/xfs/libxfs/xfs_bmap.c 			whichfork);
whichfork        4542 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmapi_finish(&bma, whichfork, 0);
whichfork        4548 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmapi_finish(&bma, whichfork, error);
whichfork        4569 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork = xfs_bmapi_whichfork(flags);
whichfork        4572 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        4582 fs/xfs/libxfs/xfs_bmap.c 	    (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS &&
whichfork        4583 fs/xfs/libxfs/xfs_bmap.c 	     XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE),
whichfork        4593 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(tp, ip, whichfork);
whichfork        4608 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
whichfork        4620 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_bmap_add_extent_hole_real(tp, ip, whichfork, &icur,
whichfork        4625 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_bmap_btree_to_extents(tp, ip, cur, &logflags, whichfork);
whichfork        4728 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        4734 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        4739 fs/xfs/libxfs/xfs_bmap.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork        4745 fs/xfs/libxfs/xfs_bmap.c 	isrt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(ip);
whichfork        4937 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork, /* data or attr fork */
whichfork        4954 fs/xfs/libxfs/xfs_bmap.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork        4960 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        4980 fs/xfs/libxfs/xfs_bmap.c 	    XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_EXTENTS &&
whichfork        4981 fs/xfs/libxfs/xfs_bmap.c 	    XFS_IFORK_NEXTENTS(ip, whichfork) >=
whichfork        4982 fs/xfs/libxfs/xfs_bmap.c 			XFS_IFORK_MAXEXT(ip, whichfork) &&
whichfork        4987 fs/xfs/libxfs/xfs_bmap.c 	if (whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip)) {
whichfork        5031 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        5032 fs/xfs/libxfs/xfs_bmap.c 			XFS_IFORK_NEXTENTS(ip, whichfork) - 1);
whichfork        5035 fs/xfs/libxfs/xfs_bmap.c 			flags |= xfs_ilog_fext(whichfork);
whichfork        5051 fs/xfs/libxfs/xfs_bmap.c 			flags |= xfs_ilog_fext(whichfork);
whichfork        5065 fs/xfs/libxfs/xfs_bmap.c 			flags |= xfs_ilog_fext(whichfork);
whichfork        5130 fs/xfs/libxfs/xfs_bmap.c 			flags |= xfs_ilog_fext(whichfork);
whichfork        5131 fs/xfs/libxfs/xfs_bmap.c 		XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        5132 fs/xfs/libxfs/xfs_bmap.c 			XFS_IFORK_NEXTENTS(ip, whichfork) + 1);
whichfork        5139 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_unmap_extent(tp, ip, whichfork, del);
whichfork        5145 fs/xfs/libxfs/xfs_bmap.c 		if (xfs_is_reflink_inode(ip) && whichfork == XFS_DATA_FORK) {
whichfork        5198 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork;	/* data or attribute fork */
whichfork        5209 fs/xfs/libxfs/xfs_bmap.c 	whichfork = xfs_bmapi_whichfork(flags);
whichfork        5210 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(whichfork != XFS_COW_FORK);
whichfork        5211 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        5213 fs/xfs/libxfs/xfs_bmap.c 	    XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS &&
whichfork        5214 fs/xfs/libxfs/xfs_bmap.c 	    XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE)) {
whichfork        5232 fs/xfs/libxfs/xfs_bmap.c 	if (tp && xfs_is_reflink_inode(ip) && whichfork == XFS_DATA_FORK)
whichfork        5238 fs/xfs/libxfs/xfs_bmap.c 	    (error = xfs_iread_extents(tp, ip, whichfork)))
whichfork        5245 fs/xfs/libxfs/xfs_bmap.c 	isrt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(ip);
whichfork        5256 fs/xfs/libxfs/xfs_bmap.c 		ASSERT(XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_BTREE);
whichfork        5257 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
whichfork        5371 fs/xfs/libxfs/xfs_bmap.c 					whichfork, &icur, &cur, &del,
whichfork        5427 fs/xfs/libxfs/xfs_bmap.c 						ip, whichfork, &icur, &cur,
whichfork        5436 fs/xfs/libxfs/xfs_bmap.c 						ip, whichfork, &icur, &cur,
whichfork        5446 fs/xfs/libxfs/xfs_bmap.c 			error = xfs_bmap_del_extent_delay(ip, whichfork, &icur,
whichfork        5450 fs/xfs/libxfs/xfs_bmap.c 					&del, &tmp_logflags, whichfork,
whichfork        5482 fs/xfs/libxfs/xfs_bmap.c 	if (xfs_bmap_needs_btree(ip, whichfork)) {
whichfork        5485 fs/xfs/libxfs/xfs_bmap.c 				&tmp_logflags, whichfork);
whichfork        5489 fs/xfs/libxfs/xfs_bmap.c 			whichfork);
whichfork        5497 fs/xfs/libxfs/xfs_bmap.c 	if ((logflags & xfs_ilog_fext(whichfork)) &&
whichfork        5498 fs/xfs/libxfs/xfs_bmap.c 	    XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS)
whichfork        5499 fs/xfs/libxfs/xfs_bmap.c 		logflags &= ~xfs_ilog_fext(whichfork);
whichfork        5500 fs/xfs/libxfs/xfs_bmap.c 	else if ((logflags & xfs_ilog_fbroot(whichfork)) &&
whichfork        5501 fs/xfs/libxfs/xfs_bmap.c 		 XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE)
whichfork        5502 fs/xfs/libxfs/xfs_bmap.c 		logflags &= ~xfs_ilog_fbroot(whichfork);
whichfork        5575 fs/xfs/libxfs/xfs_bmap.c 	int				whichfork,
whichfork        5601 fs/xfs/libxfs/xfs_bmap.c 	XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        5602 fs/xfs/libxfs/xfs_bmap.c 			   XFS_IFORK_NEXTENTS(ip, whichfork) - 1);
whichfork        5631 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_bmap_btree_to_extents(tp, ip, cur, logflags, whichfork);
whichfork        5637 fs/xfs/libxfs/xfs_bmap.c 	xfs_iext_prev(XFS_IFORK_PTR(ip, whichfork), icur);
whichfork        5638 fs/xfs/libxfs/xfs_bmap.c 	xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), icur,
whichfork        5642 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_unmap_extent(tp, ip, whichfork, got);
whichfork        5645 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_map_extent(tp, ip, whichfork, &new);
whichfork        5653 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        5681 fs/xfs/libxfs/xfs_bmap.c 	xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), icur,
whichfork        5685 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_unmap_extent(tp, ip, whichfork, &prev);
whichfork        5686 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_map_extent(tp, ip, whichfork, got);
whichfork        5698 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork = XFS_DATA_FORK;
whichfork        5700 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        5709 fs/xfs/libxfs/xfs_bmap.c 	    (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS &&
whichfork        5710 fs/xfs/libxfs/xfs_bmap.c 	     XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE),
whichfork        5722 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(tp, ip, whichfork);
whichfork        5728 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
whichfork        5747 fs/xfs/libxfs/xfs_bmap.c 			error = xfs_bmse_merge(tp, ip, whichfork,
whichfork        5761 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_bmap_shift_update_extent(tp, ip, whichfork, &icur, &got,
whichfork        5816 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork = XFS_DATA_FORK;
whichfork        5818 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        5827 fs/xfs/libxfs/xfs_bmap.c 	    (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS &&
whichfork        5828 fs/xfs/libxfs/xfs_bmap.c 	     XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE),
whichfork        5840 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(tp, ip, whichfork);
whichfork        5846 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
whichfork        5888 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_bmap_shift_update_extent(tp, ip, whichfork, &icur, &got,
whichfork        5920 fs/xfs/libxfs/xfs_bmap.c 	int				whichfork = XFS_DATA_FORK;
whichfork        5933 fs/xfs/libxfs/xfs_bmap.c 	    (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_EXTENTS &&
whichfork        5934 fs/xfs/libxfs/xfs_bmap.c 	     XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE),
whichfork        5944 fs/xfs/libxfs/xfs_bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        5947 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_iread_extents(tp, ip, whichfork);
whichfork        5966 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
whichfork        5975 fs/xfs/libxfs/xfs_bmap.c 	xfs_iext_update_extent(ip, xfs_bmap_fork_to_state(whichfork), &icur,
whichfork        5989 fs/xfs/libxfs/xfs_bmap.c 	XFS_IFORK_NEXT_SET(ip, whichfork,
whichfork        5990 fs/xfs/libxfs/xfs_bmap.c 			   XFS_IFORK_NEXTENTS(ip, whichfork) + 1);
whichfork        6006 fs/xfs/libxfs/xfs_bmap.c 	if (xfs_bmap_needs_btree(ip, whichfork)) {
whichfork        6011 fs/xfs/libxfs/xfs_bmap.c 				&tmp_logflags, whichfork);
whichfork        6069 fs/xfs/libxfs/xfs_bmap.c 	int				whichfork,
whichfork        6078 fs/xfs/libxfs/xfs_bmap.c 			ip->i_ino, whichfork,
whichfork        6087 fs/xfs/libxfs/xfs_bmap.c 	bi->bi_whichfork = whichfork;
whichfork        6129 fs/xfs/libxfs/xfs_bmap.c 	int				whichfork,
whichfork        6142 fs/xfs/libxfs/xfs_bmap.c 			ip->i_ino, whichfork, startoff, *blockcount, state);
whichfork        6144 fs/xfs/libxfs/xfs_bmap.c 	if (WARN_ON_ONCE(whichfork != XFS_DATA_FORK))
whichfork        6173 fs/xfs/libxfs/xfs_bmap.c 	int			whichfork,
whichfork        6196 fs/xfs/libxfs/xfs_bmap.c 	if (irec->br_state != XFS_EXT_NORM && whichfork != XFS_DATA_FORK)
whichfork         186 fs/xfs/libxfs/xfs_bmap.h 		struct xfs_inode *ip, int whichfork);
whichfork         190 fs/xfs/libxfs/xfs_bmap.h void	xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork);
whichfork         192 fs/xfs/libxfs/xfs_bmap.h 		xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork);
whichfork         194 fs/xfs/libxfs/xfs_bmap.h 		xfs_fileoff_t *last_block, int whichfork);
whichfork         196 fs/xfs/libxfs/xfs_bmap.h 		int whichfork);
whichfork         197 fs/xfs/libxfs/xfs_bmap.h int	xfs_bmap_one_block(struct xfs_inode *ip, int whichfork);
whichfork         210 fs/xfs/libxfs/xfs_bmap.h int	xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork,
whichfork         226 fs/xfs/libxfs/xfs_bmap.h int	xfs_bmapi_reserve_delalloc(struct xfs_inode *ip, int whichfork,
whichfork         230 fs/xfs/libxfs/xfs_bmap.h int	xfs_bmapi_convert_delalloc(struct xfs_inode *ip, int whichfork,
whichfork         234 fs/xfs/libxfs/xfs_bmap.h 		struct xfs_inode *ip, int whichfork,
whichfork         262 fs/xfs/libxfs/xfs_bmap.h 		enum xfs_bmap_intent_type type, int whichfork,
whichfork         270 fs/xfs/libxfs/xfs_bmap.h static inline int xfs_bmap_fork_to_state(int whichfork)
whichfork         272 fs/xfs/libxfs/xfs_bmap.h 	switch (whichfork) {
whichfork         282 fs/xfs/libxfs/xfs_bmap.h xfs_failaddr_t xfs_bmap_validate_extent(struct xfs_inode *ip, int whichfork,
whichfork         169 fs/xfs/libxfs/xfs_bmap_btree.c 			cur->bc_private.b.ip, cur->bc_private.b.whichfork);
whichfork         209 fs/xfs/libxfs/xfs_bmap_btree.c 			cur->bc_private.b.whichfork);
whichfork         288 fs/xfs/libxfs/xfs_bmap_btree.c 	xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_private.b.whichfork);
whichfork         306 fs/xfs/libxfs/xfs_bmap_btree.c 				    cur->bc_private.b.whichfork);
whichfork         324 fs/xfs/libxfs/xfs_bmap_btree.c 				    cur->bc_private.b.whichfork);
whichfork         549 fs/xfs/libxfs/xfs_bmap_btree.c 	int			whichfork)	/* data or attr fork */
whichfork         551 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         553 fs/xfs/libxfs/xfs_bmap_btree.c 	ASSERT(whichfork != XFS_COW_FORK);
whichfork         569 fs/xfs/libxfs/xfs_bmap_btree.c 	cur->bc_private.b.forksize = XFS_IFORK_SIZE(ip, whichfork);
whichfork         573 fs/xfs/libxfs/xfs_bmap_btree.c 	cur->bc_private.b.whichfork = whichfork;
whichfork         630 fs/xfs/libxfs/xfs_bmap_btree.c 	int			whichfork,
whichfork         639 fs/xfs/libxfs/xfs_bmap_btree.c 	if (whichfork == XFS_DATA_FORK)
whichfork         644 fs/xfs/libxfs/xfs_bmap_btree.c 	cur = xfs_bmbt_init_cursor(ip->i_mount, tp, ip, whichfork);
whichfork         103 fs/xfs/libxfs/xfs_bmap_btree.h 				 int whichfork, xfs_ino_t new_owner,
whichfork         240 fs/xfs/libxfs/xfs_btree.c 				cur->bc_private.b.whichfork, cur->bc_btnum,
whichfork         659 fs/xfs/libxfs/xfs_btree.c 	ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, cur->bc_private.b.whichfork);
whichfork        1455 fs/xfs/libxfs/xfs_btree.c 				xfs_ilog_fbroot(cur->bc_private.b.whichfork));
whichfork        1498 fs/xfs/libxfs/xfs_btree.c 			xfs_ilog_fbroot(cur->bc_private.b.whichfork));
whichfork        1567 fs/xfs/libxfs/xfs_btree.c 			xfs_ilog_fbroot(cur->bc_private.b.whichfork));
whichfork        2995 fs/xfs/libxfs/xfs_btree.c 			  cur->bc_private.b.whichfork);
whichfork        3008 fs/xfs/libxfs/xfs_btree.c 		XFS_ILOG_CORE | xfs_ilog_fbroot(cur->bc_private.b.whichfork);
whichfork        3164 fs/xfs/libxfs/xfs_btree.c 			xfs_iroot_realloc(ip, 1, cur->bc_private.b.whichfork);
whichfork        3507 fs/xfs/libxfs/xfs_btree.c 	int			whichfork = cur->bc_private.b.whichfork;
whichfork        3509 fs/xfs/libxfs/xfs_btree.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        3567 fs/xfs/libxfs/xfs_btree.c 				  cur->bc_private.b.whichfork);
whichfork        3596 fs/xfs/libxfs/xfs_btree.c 		XFS_ILOG_CORE | xfs_ilog_fbroot(cur->bc_private.b.whichfork));
whichfork        3765 fs/xfs/libxfs/xfs_btree.c 					  cur->bc_private.b.whichfork);
whichfork         218 fs/xfs/libxfs/xfs_btree.h 			char		whichfork;	/* data or attr fork */
whichfork         333 fs/xfs/libxfs/xfs_da_btree.c 	int			whichfork)
whichfork         346 fs/xfs/libxfs/xfs_da_btree.c 	error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork);
whichfork         571 fs/xfs/libxfs/xfs_da_btree.c 	error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork);
whichfork         634 fs/xfs/libxfs/xfs_da_btree.c 		(args->whichfork == XFS_DATA_FORK) ? args->geo->leafblk : 0,
whichfork         635 fs/xfs/libxfs/xfs_da_btree.c 		level + 1, &bp, args->whichfork);
whichfork         694 fs/xfs/libxfs/xfs_da_btree.c 	useextra = state->extravalid && state->args->whichfork == XFS_ATTR_FORK;
whichfork         709 fs/xfs/libxfs/xfs_da_btree.c 					   &newblk->bp, state->args->whichfork);
whichfork         929 fs/xfs/libxfs/xfs_da_btree.c 	if (state->args->whichfork == XFS_DATA_FORK)
whichfork        1113 fs/xfs/libxfs/xfs_da_btree.c 					     args->whichfork);
whichfork        1228 fs/xfs/libxfs/xfs_da_btree.c 					blkno, -1, &bp, state->args->whichfork);
whichfork        1520 fs/xfs/libxfs/xfs_da_btree.c 					-1, &blk->bp, args->whichfork);
whichfork        1749 fs/xfs/libxfs/xfs_da_btree.c 						-1, &bp, args->whichfork);
whichfork        1770 fs/xfs/libxfs/xfs_da_btree.c 						-1, &bp, args->whichfork);
whichfork        1829 fs/xfs/libxfs/xfs_da_btree.c 						-1, &bp, args->whichfork);
whichfork        1846 fs/xfs/libxfs/xfs_da_btree.c 						-1, &bp, args->whichfork);
whichfork        1933 fs/xfs/libxfs/xfs_da_btree.c 					  args->whichfork);
whichfork        2067 fs/xfs/libxfs/xfs_da_btree.c 	int			w = args->whichfork;
whichfork        2209 fs/xfs/libxfs/xfs_da_btree.c 	w = args->whichfork;
whichfork        2407 fs/xfs/libxfs/xfs_da_btree.c 	w = args->whichfork;
whichfork        2513 fs/xfs/libxfs/xfs_da_btree.c 	int			whichfork,
whichfork        2527 fs/xfs/libxfs/xfs_da_btree.c 	if (whichfork == XFS_DATA_FORK)
whichfork        2546 fs/xfs/libxfs/xfs_da_btree.c 				       &nirecs, xfs_bmapi_aflag(whichfork));
whichfork        2597 fs/xfs/libxfs/xfs_da_btree.c 	int			whichfork)
whichfork        2608 fs/xfs/libxfs/xfs_da_btree.c 	error = xfs_dabuf_map(dp, bno, mappedbno, whichfork,
whichfork        2645 fs/xfs/libxfs/xfs_da_btree.c 	int			whichfork,
whichfork        2657 fs/xfs/libxfs/xfs_da_btree.c 	error = xfs_dabuf_map(dp, bno, mappedbno, whichfork,
whichfork        2672 fs/xfs/libxfs/xfs_da_btree.c 	if (whichfork == XFS_ATTR_FORK)
whichfork        2692 fs/xfs/libxfs/xfs_da_btree.c 	int			whichfork,
whichfork        2702 fs/xfs/libxfs/xfs_da_btree.c 	error = xfs_dabuf_map(dp, bno, mappedbno, whichfork,
whichfork          61 fs/xfs/libxfs/xfs_da_btree.h 	int		whichfork;	/* data or attribute fork */
whichfork         153 fs/xfs/libxfs/xfs_da_btree.h 			    int level, struct xfs_buf **bpp, int whichfork);
whichfork         186 fs/xfs/libxfs/xfs_da_btree.h 			      struct xfs_buf **bp, int whichfork);
whichfork         189 fs/xfs/libxfs/xfs_da_btree.h 			       struct xfs_buf **bpp, int whichfork,
whichfork         192 fs/xfs/libxfs/xfs_da_btree.h 				xfs_daddr_t mapped_bno, int whichfork,
whichfork         269 fs/xfs/libxfs/xfs_dir2.c 	args->whichfork = XFS_DATA_FORK;
whichfork         363 fs/xfs/libxfs/xfs_dir2.c 	args->whichfork = XFS_DATA_FORK;
whichfork         437 fs/xfs/libxfs/xfs_dir2.c 	args->whichfork = XFS_DATA_FORK;
whichfork         498 fs/xfs/libxfs/xfs_dir2.c 	args->whichfork = XFS_DATA_FORK;
whichfork         379 fs/xfs/libxfs/xfs_inode_buf.c 	int			whichfork)
whichfork         381 fs/xfs/libxfs/xfs_inode_buf.c 	uint32_t		di_nextents = XFS_DFORK_NEXTENTS(dip, whichfork);
whichfork         383 fs/xfs/libxfs/xfs_inode_buf.c 	switch (XFS_DFORK_FORMAT(dip, whichfork)) {
whichfork         388 fs/xfs/libxfs/xfs_inode_buf.c 		if (whichfork == XFS_DATA_FORK) {
whichfork         392 fs/xfs/libxfs/xfs_inode_buf.c 					XFS_DFORK_SIZE(dip, mp, whichfork))
whichfork         399 fs/xfs/libxfs/xfs_inode_buf.c 		if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork))
whichfork         403 fs/xfs/libxfs/xfs_inode_buf.c 		if (whichfork == XFS_ATTR_FORK) {
whichfork         130 fs/xfs/libxfs/xfs_inode_fork.c 	int			whichfork,
whichfork         134 fs/xfs/libxfs/xfs_inode_fork.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         170 fs/xfs/libxfs/xfs_inode_fork.c 	int		whichfork,
whichfork         178 fs/xfs/libxfs/xfs_inode_fork.c 	if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) {
whichfork         182 fs/xfs/libxfs/xfs_inode_fork.c 			XFS_DFORK_SIZE(dip, ip->i_mount, whichfork));
whichfork         189 fs/xfs/libxfs/xfs_inode_fork.c 	xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size);
whichfork         201 fs/xfs/libxfs/xfs_inode_fork.c 	int			whichfork)
whichfork         204 fs/xfs/libxfs/xfs_inode_fork.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         205 fs/xfs/libxfs/xfs_inode_fork.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork         206 fs/xfs/libxfs/xfs_inode_fork.c 	int			nex = XFS_DFORK_NEXTENTS(dip, whichfork);
whichfork         217 fs/xfs/libxfs/xfs_inode_fork.c 	if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) {
whichfork         230 fs/xfs/libxfs/xfs_inode_fork.c 		dp = (xfs_bmbt_rec_t *) XFS_DFORK_PTR(dip, whichfork);
whichfork         237 fs/xfs/libxfs/xfs_inode_fork.c 			fa = xfs_bmap_validate_extent(ip, whichfork, &new);
whichfork         266 fs/xfs/libxfs/xfs_inode_fork.c 	int			whichfork)
whichfork         276 fs/xfs/libxfs/xfs_inode_fork.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         277 fs/xfs/libxfs/xfs_inode_fork.c 	dfp = (xfs_bmdr_block_t *)XFS_DFORK_PTR(dip, whichfork);
whichfork         289 fs/xfs/libxfs/xfs_inode_fork.c 	if (unlikely(XFS_IFORK_NEXTENTS(ip, whichfork) <=
whichfork         290 fs/xfs/libxfs/xfs_inode_fork.c 					XFS_IFORK_MAXEXT(ip, whichfork) ||
whichfork         293 fs/xfs/libxfs/xfs_inode_fork.c 					XFS_DFORK_SIZE(dip, mp, whichfork) ||
whichfork         294 fs/xfs/libxfs/xfs_inode_fork.c 		     XFS_IFORK_NEXTENTS(ip, whichfork) > ip->i_d.di_nblocks) ||
whichfork         311 fs/xfs/libxfs/xfs_inode_fork.c 	xfs_bmdr_to_bmbt(ip, dfp, XFS_DFORK_SIZE(dip, ip->i_mount, whichfork),
whichfork         344 fs/xfs/libxfs/xfs_inode_fork.c 	int			whichfork)
whichfork         362 fs/xfs/libxfs/xfs_inode_fork.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         392 fs/xfs/libxfs/xfs_inode_fork.c 			XFS_IFORK_SIZE(ip, whichfork));
whichfork         447 fs/xfs/libxfs/xfs_inode_fork.c 			XFS_IFORK_SIZE(ip, whichfork));
whichfork         471 fs/xfs/libxfs/xfs_inode_fork.c 	int			whichfork)
whichfork         473 fs/xfs/libxfs/xfs_inode_fork.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         477 fs/xfs/libxfs/xfs_inode_fork.c 	ASSERT(new_size <= XFS_IFORK_SIZE(ip, whichfork));
whichfork         502 fs/xfs/libxfs/xfs_inode_fork.c 	int		whichfork)
whichfork         506 fs/xfs/libxfs/xfs_inode_fork.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         518 fs/xfs/libxfs/xfs_inode_fork.c 	if (XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_LOCAL) {
whichfork         527 fs/xfs/libxfs/xfs_inode_fork.c 	if (whichfork == XFS_ATTR_FORK) {
whichfork         530 fs/xfs/libxfs/xfs_inode_fork.c 	} else if (whichfork == XFS_COW_FORK) {
whichfork         549 fs/xfs/libxfs/xfs_inode_fork.c 	int			whichfork)
whichfork         551 fs/xfs/libxfs/xfs_inode_fork.c 	int			state = xfs_bmap_fork_to_state(whichfork);
whichfork         552 fs/xfs/libxfs/xfs_inode_fork.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         563 fs/xfs/libxfs/xfs_inode_fork.c 		ASSERT(xfs_bmap_validate_extent(ip, whichfork, &rec) == NULL);
whichfork         590 fs/xfs/libxfs/xfs_inode_fork.c 	int			whichfork)
whichfork         604 fs/xfs/libxfs/xfs_inode_fork.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         610 fs/xfs/libxfs/xfs_inode_fork.c 		ASSERT(whichfork == XFS_ATTR_FORK);
whichfork         613 fs/xfs/libxfs/xfs_inode_fork.c 	cp = XFS_DFORK_PTR(dip, whichfork);
whichfork         615 fs/xfs/libxfs/xfs_inode_fork.c 	switch (XFS_IFORK_FORMAT(ip, whichfork)) {
whichfork         617 fs/xfs/libxfs/xfs_inode_fork.c 		if ((iip->ili_fields & dataflag[whichfork]) &&
whichfork         620 fs/xfs/libxfs/xfs_inode_fork.c 			ASSERT(ifp->if_bytes <= XFS_IFORK_SIZE(ip, whichfork));
whichfork         627 fs/xfs/libxfs/xfs_inode_fork.c 		       !(iip->ili_fields & extflag[whichfork]));
whichfork         628 fs/xfs/libxfs/xfs_inode_fork.c 		if ((iip->ili_fields & extflag[whichfork]) &&
whichfork         630 fs/xfs/libxfs/xfs_inode_fork.c 			ASSERT(XFS_IFORK_NEXTENTS(ip, whichfork) > 0);
whichfork         632 fs/xfs/libxfs/xfs_inode_fork.c 				whichfork);
whichfork         637 fs/xfs/libxfs/xfs_inode_fork.c 		if ((iip->ili_fields & brootflag[whichfork]) &&
whichfork         641 fs/xfs/libxfs/xfs_inode_fork.c 			        XFS_IFORK_SIZE(ip, whichfork));
whichfork         644 fs/xfs/libxfs/xfs_inode_fork.c 				XFS_DFORK_SIZE(dip, mp, whichfork));
whichfork         650 fs/xfs/libxfs/xfs_inode_fork.c 			ASSERT(whichfork == XFS_DATA_FORK);
whichfork        2156 fs/xfs/libxfs/xfs_rmap.c 	int				whichfork,
whichfork        2176 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_deferred(mp, agno, type, bno, owner, whichfork,
whichfork        2213 fs/xfs/libxfs/xfs_rmap.c 	xfs_rmap_ino_owner(&oinfo, owner, whichfork, startoff);
whichfork        2261 fs/xfs/libxfs/xfs_rmap.c 	int			whichfork)
whichfork        2263 fs/xfs/libxfs/xfs_rmap.c 	return xfs_sb_version_hasrmapbt(&mp->m_sb) && whichfork != XFS_COW_FORK;
whichfork        2275 fs/xfs/libxfs/xfs_rmap.c 	int				whichfork,
whichfork        2284 fs/xfs/libxfs/xfs_rmap.c 			owner, whichfork,
whichfork        2293 fs/xfs/libxfs/xfs_rmap.c 	ri->ri_whichfork = whichfork;
whichfork        2304 fs/xfs/libxfs/xfs_rmap.c 	int			whichfork,
whichfork        2307 fs/xfs/libxfs/xfs_rmap.c 	if (!xfs_rmap_update_is_needed(tp->t_mountp, whichfork))
whichfork        2312 fs/xfs/libxfs/xfs_rmap.c 			whichfork, PREV);
whichfork        2320 fs/xfs/libxfs/xfs_rmap.c 	int			whichfork,
whichfork        2323 fs/xfs/libxfs/xfs_rmap.c 	if (!xfs_rmap_update_is_needed(tp->t_mountp, whichfork))
whichfork        2328 fs/xfs/libxfs/xfs_rmap.c 			whichfork, PREV);
whichfork        2342 fs/xfs/libxfs/xfs_rmap.c 	int			whichfork,
whichfork        2345 fs/xfs/libxfs/xfs_rmap.c 	if (!xfs_rmap_update_is_needed(mp, whichfork))
whichfork        2350 fs/xfs/libxfs/xfs_rmap.c 			whichfork, PREV);
whichfork          13 fs/xfs/libxfs/xfs_rmap.h 	int			whichfork)
whichfork          18 fs/xfs/libxfs/xfs_rmap.h 	if (whichfork == XFS_ATTR_FORK)
whichfork          26 fs/xfs/libxfs/xfs_rmap.h 	int			whichfork,
whichfork          32 fs/xfs/libxfs/xfs_rmap.h 	if (whichfork == XFS_ATTR_FORK)
whichfork         166 fs/xfs/libxfs/xfs_rmap.h 		int whichfork, struct xfs_bmbt_irec *imap);
whichfork         168 fs/xfs/libxfs/xfs_rmap.h 		int whichfork, struct xfs_bmbt_irec *imap);
whichfork         170 fs/xfs/libxfs/xfs_rmap.h 		struct xfs_inode *ip, int whichfork,
whichfork         180 fs/xfs/libxfs/xfs_rmap.h 		uint64_t owner, int whichfork, xfs_fileoff_t startoff,
whichfork         156 fs/xfs/scrub/attr.c 	args.whichfork = XFS_ATTR_FORK;
whichfork          79 fs/xfs/scrub/bmap.c 	int			whichfork;
whichfork          96 fs/xfs/scrub/bmap.c 	if (info->whichfork == XFS_ATTR_FORK)
whichfork         103 fs/xfs/scrub/bmap.c 	if (info->whichfork == XFS_COW_FORK)
whichfork         140 fs/xfs/scrub/bmap.c 		xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
whichfork         159 fs/xfs/scrub/bmap.c 	if (info->whichfork == XFS_COW_FORK)
whichfork         172 fs/xfs/scrub/bmap.c 		xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
whichfork         180 fs/xfs/scrub/bmap.c 	if (info->whichfork != XFS_COW_FORK) {
whichfork         186 fs/xfs/scrub/bmap.c 					info->whichfork, irec->br_startoff);
whichfork         190 fs/xfs/scrub/bmap.c 		xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
whichfork         203 fs/xfs/scrub/bmap.c 		xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
whichfork         206 fs/xfs/scrub/bmap.c 	if (info->whichfork == XFS_ATTR_FORK &&
whichfork         208 fs/xfs/scrub/bmap.c 		xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
whichfork         211 fs/xfs/scrub/bmap.c 		xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
whichfork         244 fs/xfs/scrub/bmap.c 	if (!xchk_fblock_process_error(info->sc, info->whichfork,
whichfork         251 fs/xfs/scrub/bmap.c 	switch (info->whichfork) {
whichfork         282 fs/xfs/scrub/bmap.c 	if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK)
whichfork         286 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         291 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork, off);
whichfork         310 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         317 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         325 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         330 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         333 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         339 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         346 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         351 fs/xfs/scrub/bmap.c 	    info->whichfork == XFS_ATTR_FORK)
whichfork         352 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(info->sc, info->whichfork,
whichfork         380 fs/xfs/scrub/bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, info->whichfork);
whichfork         395 fs/xfs/scrub/bmap.c 						info->whichfork, 0);
whichfork         416 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(bs->sc, info->whichfork,
whichfork         425 fs/xfs/scrub/bmap.c 	int			whichfork,
whichfork         429 fs/xfs/scrub/bmap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(sc->ip, whichfork);
whichfork         438 fs/xfs/scrub/bmap.c 		error = xfs_iread_extents(sc->tp, ip, whichfork);
whichfork         439 fs/xfs/scrub/bmap.c 		if (!xchk_fblock_process_error(sc, whichfork, 0, &error))
whichfork         444 fs/xfs/scrub/bmap.c 	cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork);
whichfork         445 fs/xfs/scrub/bmap.c 	xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork);
whichfork         454 fs/xfs/scrub/bmap.c 	int			whichfork;
whichfork         474 fs/xfs/scrub/bmap.c 	if ((sbcri->whichfork == XFS_ATTR_FORK) ^
whichfork         481 fs/xfs/scrub/bmap.c 	ifp = XFS_IFORK_PTR(sc->ip, sbcri->whichfork);
whichfork         483 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(sc, sbcri->whichfork,
whichfork         490 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(sc, sbcri->whichfork,
whichfork         501 fs/xfs/scrub/bmap.c 			xchk_fblock_set_corrupt(sc, sbcri->whichfork,
whichfork         505 fs/xfs/scrub/bmap.c 			xchk_fblock_set_corrupt(sc, sbcri->whichfork,
whichfork         508 fs/xfs/scrub/bmap.c 			xchk_fblock_set_corrupt(sc, sbcri->whichfork,
whichfork         519 fs/xfs/scrub/bmap.c 			xchk_fblock_set_corrupt(sc, sbcri->whichfork,
whichfork         533 fs/xfs/scrub/bmap.c 	int				whichfork,
whichfork         552 fs/xfs/scrub/bmap.c 	sbcri.whichfork = whichfork;
whichfork         567 fs/xfs/scrub/bmap.c 	int			whichfork)
whichfork         574 fs/xfs/scrub/bmap.c 	    whichfork == XFS_COW_FORK ||
whichfork         579 fs/xfs/scrub/bmap.c 	if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK)
whichfork         589 fs/xfs/scrub/bmap.c 	switch (whichfork) {
whichfork         600 fs/xfs/scrub/bmap.c 	if (XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_BTREE &&
whichfork         601 fs/xfs/scrub/bmap.c 	    (size == 0 || XFS_IFORK_NEXTENTS(sc->ip, whichfork) > 0))
whichfork         605 fs/xfs/scrub/bmap.c 		error = xchk_bmap_check_ag_rmaps(sc, whichfork, agno);
whichfork         624 fs/xfs/scrub/bmap.c 	int			whichfork)
whichfork         635 fs/xfs/scrub/bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         637 fs/xfs/scrub/bmap.c 	info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip);
whichfork         638 fs/xfs/scrub/bmap.c 	info.whichfork = whichfork;
whichfork         639 fs/xfs/scrub/bmap.c 	info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip);
whichfork         642 fs/xfs/scrub/bmap.c 	switch (whichfork) {
whichfork         661 fs/xfs/scrub/bmap.c 		ASSERT(whichfork == XFS_DATA_FORK);
whichfork         666 fs/xfs/scrub/bmap.c 	switch (XFS_IFORK_FORMAT(ip, whichfork)) {
whichfork         674 fs/xfs/scrub/bmap.c 			xchk_fblock_set_corrupt(sc, whichfork, 0);
whichfork         679 fs/xfs/scrub/bmap.c 		if (whichfork == XFS_COW_FORK) {
whichfork         680 fs/xfs/scrub/bmap.c 			xchk_fblock_set_corrupt(sc, whichfork, 0);
whichfork         684 fs/xfs/scrub/bmap.c 		error = xchk_bmap_btree(sc, whichfork, &info);
whichfork         689 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(sc, whichfork, 0);
whichfork         697 fs/xfs/scrub/bmap.c 	error = xfs_bmap_last_offset(ip, &endoff, whichfork);
whichfork         698 fs/xfs/scrub/bmap.c 	if (!xchk_fblock_process_error(sc, whichfork, 0, &error))
whichfork         703 fs/xfs/scrub/bmap.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         711 fs/xfs/scrub/bmap.c 			xchk_fblock_set_corrupt(sc, whichfork,
whichfork         721 fs/xfs/scrub/bmap.c 	error = xchk_bmap_check_rmaps(sc, whichfork);
whichfork         722 fs/xfs/scrub/bmap.c 	if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error))
whichfork         119 fs/xfs/scrub/common.c 	int			whichfork,
whichfork         139 fs/xfs/scrub/common.c 		trace_xchk_file_op_error(sc, whichfork, offset, *error,
whichfork         149 fs/xfs/scrub/common.c 	int			whichfork,
whichfork         153 fs/xfs/scrub/common.c 	return __xchk_fblock_process_error(sc, whichfork, offset, error,
whichfork         160 fs/xfs/scrub/common.c 	int			whichfork,
whichfork         164 fs/xfs/scrub/common.c 	return __xchk_fblock_process_error(sc, whichfork, offset, error,
whichfork         261 fs/xfs/scrub/common.c 	int			whichfork,
whichfork         265 fs/xfs/scrub/common.c 	trace_xchk_fblock_error(sc, whichfork, offset, __return_address);
whichfork         272 fs/xfs/scrub/common.c 	int			whichfork,
whichfork         276 fs/xfs/scrub/common.c 	trace_xchk_fblock_error(sc, whichfork, offset, __return_address);
whichfork         296 fs/xfs/scrub/common.c 	int			whichfork,
whichfork         300 fs/xfs/scrub/common.c 	trace_xchk_fblock_warning(sc, whichfork, offset, __return_address);
whichfork          37 fs/xfs/scrub/common.h bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork,
whichfork          43 fs/xfs/scrub/common.h 		int whichfork, xfs_fileoff_t offset, int *error);
whichfork          53 fs/xfs/scrub/common.h void xchk_fblock_set_corrupt(struct xfs_scrub *sc, int whichfork,
whichfork          61 fs/xfs/scrub/common.h 		int whichfork, xfs_fileoff_t offset);
whichfork          64 fs/xfs/scrub/common.h void xchk_fblock_set_warning(struct xfs_scrub *sc, int whichfork,
whichfork          52 fs/xfs/scrub/dabtree.c 		trace_xchk_file_op_error(sc, ds->dargs.whichfork,
whichfork          74 fs/xfs/scrub/dabtree.c 	trace_xchk_fblock_error(sc, ds->dargs.whichfork,
whichfork         359 fs/xfs/scrub/dabtree.c 			&blk->bp, dargs->whichfork,
whichfork         371 fs/xfs/scrub/dabtree.c 	if (ds->dargs.whichfork == XFS_DATA_FORK && level == 0 &&
whichfork         474 fs/xfs/scrub/dabtree.c 	int				whichfork,
whichfork         488 fs/xfs/scrub/dabtree.c 	if (XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_EXTENTS &&
whichfork         489 fs/xfs/scrub/dabtree.c 	    XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_BTREE)
whichfork         494 fs/xfs/scrub/dabtree.c 	ds.dargs.whichfork = whichfork;
whichfork         502 fs/xfs/scrub/dabtree.c 	if (whichfork == XFS_ATTR_FORK) {
whichfork          41 fs/xfs/scrub/dabtree.h int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
whichfork         158 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_scrub *sc, int whichfork,
whichfork         160 fs/xfs/scrub/trace.h 	TP_ARGS(sc, whichfork, offset, error, ret_ip),
whichfork         164 fs/xfs/scrub/trace.h 		__field(int, whichfork)
whichfork         173 fs/xfs/scrub/trace.h 		__entry->whichfork = whichfork;
whichfork         182 fs/xfs/scrub/trace.h 		  __entry->whichfork,
whichfork         265 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_scrub *sc, int whichfork,
whichfork         267 fs/xfs/scrub/trace.h 	TP_ARGS(sc, whichfork, offset, ret_ip),
whichfork         271 fs/xfs/scrub/trace.h 		__field(int, whichfork)
whichfork         279 fs/xfs/scrub/trace.h 		__entry->whichfork = whichfork;
whichfork         287 fs/xfs/scrub/trace.h 		  __entry->whichfork,
whichfork         295 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_scrub *sc, int whichfork, \
whichfork         297 fs/xfs/scrub/trace.h 	TP_ARGS(sc, whichfork, offset, ret_ip))
whichfork         368 fs/xfs/scrub/trace.h 		__field(int, whichfork)
whichfork         382 fs/xfs/scrub/trace.h 		__entry->whichfork = cur->bc_private.b.whichfork;
whichfork         395 fs/xfs/scrub/trace.h 		  __entry->whichfork,
whichfork         449 fs/xfs/scrub/trace.h 		__field(int, whichfork)
whichfork         462 fs/xfs/scrub/trace.h 		__entry->whichfork = cur->bc_private.b.whichfork;
whichfork         474 fs/xfs/scrub/trace.h 		  __entry->whichfork,
whichfork         242 fs/xfs/xfs_bmap_item.c 	int				whichfork,
whichfork         250 fs/xfs/xfs_bmap_item.c 	error = xfs_bmap_finish_one(tp, ip, type, whichfork, startoff,
whichfork         307 fs/xfs/xfs_bmap_item.c 	int				whichfork,
whichfork         321 fs/xfs/xfs_bmap_item.c 	if (whichfork == XFS_ATTR_FORK)
whichfork         446 fs/xfs/xfs_bmap_item.c 	int				whichfork;
whichfork         519 fs/xfs/xfs_bmap_item.c 	whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ?
whichfork         534 fs/xfs/xfs_bmap_item.c 	error = xfs_trans_log_finish_bmap_update(tp, budp, type, ip, whichfork,
whichfork         190 fs/xfs/xfs_bmap_util.c 	int			whichfork,
whichfork         196 fs/xfs/xfs_bmap_util.c 	error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, eof);
whichfork         339 fs/xfs/xfs_bmap_util.c 	int			whichfork,
whichfork         355 fs/xfs/xfs_bmap_util.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         359 fs/xfs/xfs_bmap_util.c 	switch (XFS_IFORK_FORMAT(ip, whichfork)) {
whichfork         365 fs/xfs/xfs_bmap_util.c 			error = xfs_iread_extents(tp, ip, whichfork);
whichfork         509 fs/xfs/xfs_bmap_util.c 	int			whichfork, lock, error = 0;
whichfork         534 fs/xfs/xfs_bmap_util.c 		whichfork = XFS_ATTR_FORK;
whichfork         536 fs/xfs/xfs_bmap_util.c 		whichfork = XFS_COW_FORK;
whichfork         538 fs/xfs/xfs_bmap_util.c 		whichfork = XFS_DATA_FORK;
whichfork         539 fs/xfs/xfs_bmap_util.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         542 fs/xfs/xfs_bmap_util.c 	switch (whichfork) {
whichfork         591 fs/xfs/xfs_bmap_util.c 	switch (XFS_IFORK_FORMAT(ip, whichfork)) {
whichfork         614 fs/xfs/xfs_bmap_util.c 		error = xfs_iread_extents(NULL, ip, whichfork);
whichfork         663 fs/xfs/xfs_bmap_util.c 			if (whichfork != XFS_ATTR_FORK && bno < end &&
whichfork          34 fs/xfs/xfs_bmap_util.h 		     int whichfork, int *eof);
whichfork          54 fs/xfs/xfs_bmap_util.h 			     int whichfork, struct xfs_bmbt_irec *rec,
whichfork          80 fs/xfs/xfs_bmap_util.h 			  int whichfork, xfs_extnum_t *nextents,
whichfork        1509 fs/xfs/xfs_inode.c 	int			whichfork,
whichfork        1532 fs/xfs/xfs_inode.c 	flags |= xfs_bmapi_aflag(whichfork);
whichfork        1570 fs/xfs/xfs_inode.c 	if (whichfork == XFS_DATA_FORK) {
whichfork        2713 fs/xfs/xfs_inode.c 	int			whichfork)
whichfork        2717 fs/xfs/xfs_inode.c 	if (XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_LOCAL)
whichfork        2720 fs/xfs/xfs_inode.c 	ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork        2721 fs/xfs/xfs_inode.c 	xfs_idata_realloc(ip, -ifp->if_bytes, whichfork);
whichfork         462 fs/xfs/xfs_inode.h 	int			whichfork,
whichfork         465 fs/xfs/xfs_inode.h 	return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0);
whichfork         395 fs/xfs/xfs_iomap.c 	int			whichfork,
whichfork         401 fs/xfs/xfs_iomap.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         543 fs/xfs/xfs_iomap.c 	int			whichfork = XFS_DATA_FORK;
whichfork         603 fs/xfs/xfs_iomap.c 			whichfork = XFS_COW_FORK;
whichfork         639 fs/xfs/xfs_iomap.c 		whichfork = XFS_COW_FORK;
whichfork         655 fs/xfs/xfs_iomap.c 			whichfork = XFS_COW_FORK;
whichfork         663 fs/xfs/xfs_iomap.c 		prealloc_blocks = xfs_iomap_prealloc_size(ip, whichfork, offset,
whichfork         685 fs/xfs/xfs_iomap.c 	error = xfs_bmapi_reserve_delalloc(ip, whichfork, offset_fsb,
whichfork         687 fs/xfs/xfs_iomap.c 			whichfork == XFS_DATA_FORK ? &imap : &cmap,
whichfork         688 fs/xfs/xfs_iomap.c 			whichfork == XFS_DATA_FORK ? &icur : &ccur,
whichfork         689 fs/xfs/xfs_iomap.c 			whichfork == XFS_DATA_FORK ? eof : cow_eof);
whichfork         711 fs/xfs/xfs_iomap.c 	trace_xfs_iomap_alloc(ip, offset, count, whichfork,
whichfork         712 fs/xfs/xfs_iomap.c 			whichfork == XFS_DATA_FORK ? &imap : &cmap);
whichfork         714 fs/xfs/xfs_iomap.c 	if (whichfork == XFS_COW_FORK) {
whichfork         262 fs/xfs/xfs_rmap_item.c 	int				whichfork,
whichfork         268 fs/xfs/xfs_rmap_item.c 	if (whichfork == XFS_ATTR_FORK)
whichfork         311 fs/xfs/xfs_rmap_item.c 	int				whichfork,
whichfork         320 fs/xfs/xfs_rmap_item.c 	error = xfs_rmap_finish_one(tp, type, owner, whichfork, startoff,
whichfork         500 fs/xfs/xfs_rmap_item.c 	int				whichfork;
whichfork         556 fs/xfs/xfs_rmap_item.c 		whichfork = (rmap->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ?
whichfork         588 fs/xfs/xfs_rmap_item.c 				rmap->me_owner, whichfork,
whichfork         900 fs/xfs/xfs_super.c 	int			whichfork)
whichfork         902 fs/xfs/xfs_super.c 	struct xfs_ifork	*ifp = XFS_IFORK_PTR(ip, whichfork);
whichfork         913 fs/xfs/xfs_super.c 				whichfork == XFS_DATA_FORK ? "data" : "cow",
whichfork         919 fs/xfs/xfs_super.c #define xfs_check_delalloc(ip, whichfork)	do { } while (0)
whichfork        1228 fs/xfs/xfs_trace.h 		 int whichfork, struct xfs_bmbt_irec *irec),
whichfork        1229 fs/xfs/xfs_trace.h 	TP_ARGS(ip, offset, count, whichfork, irec),
whichfork        1236 fs/xfs/xfs_trace.h 		__field(int, whichfork)
whichfork        1247 fs/xfs/xfs_trace.h 		__entry->whichfork = whichfork;
whichfork        1259 fs/xfs/xfs_trace.h 		  __entry->whichfork == XFS_COW_FORK ? "cow" : "data",
whichfork        1268 fs/xfs/xfs_trace.h 		 int whichfork, struct xfs_bmbt_irec *irec),		\
whichfork        1269 fs/xfs/xfs_trace.h 	TP_ARGS(ip, offset, count, whichfork, irec))
whichfork        2357 fs/xfs/xfs_trace.h 		 int whichfork,
whichfork        2361 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, op, agbno, ino, whichfork, offset, len, state),
whichfork        2367 fs/xfs/xfs_trace.h 		__field(int, whichfork)
whichfork        2378 fs/xfs/xfs_trace.h 		__entry->whichfork = whichfork;
whichfork        2390 fs/xfs/xfs_trace.h 		  __entry->whichfork == XFS_ATTR_FORK ? "attr" : "data",
whichfork        2401 fs/xfs/xfs_trace.h 		 int whichfork, \
whichfork        2405 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, op, agbno, ino, whichfork, offset, len, state))