Lines Matching refs:icw

48 		enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
50 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
830 struct xfs_icwalk *icw) in xfs_reclaim_igrab() argument
844 (!icw || !(icw->icw_flags & XFS_ICWALK_FLAG_RECLAIM_SICK))) { in xfs_reclaim_igrab()
971 struct xfs_icwalk icw = { in xfs_reclaim_inodes() local
976 icw.icw_flags |= XFS_ICWALK_FLAG_RECLAIM_SICK; in xfs_reclaim_inodes()
980 xfs_icwalk(mp, XFS_ICWALK_RECLAIM, &icw); in xfs_reclaim_inodes()
996 struct xfs_icwalk icw = { in xfs_reclaim_inodes_nr() local
1002 icw.icw_flags |= XFS_ICWALK_FLAG_RECLAIM_SICK; in xfs_reclaim_inodes_nr()
1008 xfs_icwalk(mp, XFS_ICWALK_RECLAIM, &icw); in xfs_reclaim_inodes_nr()
1035 struct xfs_icwalk *icw) in xfs_icwalk_match_id() argument
1037 if ((icw->icw_flags & XFS_ICWALK_FLAG_UID) && in xfs_icwalk_match_id()
1038 !uid_eq(VFS_I(ip)->i_uid, icw->icw_uid)) in xfs_icwalk_match_id()
1041 if ((icw->icw_flags & XFS_ICWALK_FLAG_GID) && in xfs_icwalk_match_id()
1042 !gid_eq(VFS_I(ip)->i_gid, icw->icw_gid)) in xfs_icwalk_match_id()
1045 if ((icw->icw_flags & XFS_ICWALK_FLAG_PRID) && in xfs_icwalk_match_id()
1046 ip->i_projid != icw->icw_prid) in xfs_icwalk_match_id()
1059 struct xfs_icwalk *icw) in xfs_icwalk_match_id_union() argument
1061 if ((icw->icw_flags & XFS_ICWALK_FLAG_UID) && in xfs_icwalk_match_id_union()
1062 uid_eq(VFS_I(ip)->i_uid, icw->icw_uid)) in xfs_icwalk_match_id_union()
1065 if ((icw->icw_flags & XFS_ICWALK_FLAG_GID) && in xfs_icwalk_match_id_union()
1066 gid_eq(VFS_I(ip)->i_gid, icw->icw_gid)) in xfs_icwalk_match_id_union()
1069 if ((icw->icw_flags & XFS_ICWALK_FLAG_PRID) && in xfs_icwalk_match_id_union()
1070 ip->i_projid == icw->icw_prid) in xfs_icwalk_match_id_union()
1084 struct xfs_icwalk *icw) in xfs_icwalk_match() argument
1088 if (!icw) in xfs_icwalk_match()
1091 if (icw->icw_flags & XFS_ICWALK_FLAG_UNION) in xfs_icwalk_match()
1092 match = xfs_icwalk_match_id_union(ip, icw); in xfs_icwalk_match()
1094 match = xfs_icwalk_match_id(ip, icw); in xfs_icwalk_match()
1099 if ((icw->icw_flags & XFS_ICWALK_FLAG_MINFILESIZE) && in xfs_icwalk_match()
1100 XFS_ISIZE(ip) < icw->icw_min_file_size) in xfs_icwalk_match()
1126 struct xfs_icwalk *icw, in xfs_inode_free_eofblocks() argument
1131 wait = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_inode_free_eofblocks()
1143 if (!xfs_icwalk_match(ip, icw)) in xfs_inode_free_eofblocks()
1288 struct xfs_icwalk *icw, in xfs_inode_free_cowblocks() argument
1294 wait = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_inode_free_cowblocks()
1302 if (!xfs_icwalk_match(ip, icw)) in xfs_inode_free_cowblocks()
1429 struct xfs_icwalk *icw) in xfs_blockgc_scan_inode() argument
1434 error = xfs_inode_free_eofblocks(ip, icw, &lockflags); in xfs_blockgc_scan_inode()
1438 error = xfs_inode_free_cowblocks(ip, icw, &lockflags); in xfs_blockgc_scan_inode()
1472 struct xfs_icwalk *icw) in xfs_blockgc_free_space() argument
1476 trace_xfs_blockgc_free_space(mp, icw, _RET_IP_); in xfs_blockgc_free_space()
1478 error = xfs_icwalk(mp, XFS_ICWALK_BLOCKGC, icw); in xfs_blockgc_free_space()
1532 struct xfs_icwalk icw = {0}; in xfs_blockgc_free_dquots() local
1542 icw.icw_flags = XFS_ICWALK_FLAG_UNION | iwalk_flags; in xfs_blockgc_free_dquots()
1545 icw.icw_uid = make_kuid(mp->m_super->s_user_ns, udqp->q_id); in xfs_blockgc_free_dquots()
1546 icw.icw_flags |= XFS_ICWALK_FLAG_UID; in xfs_blockgc_free_dquots()
1551 icw.icw_gid = make_kgid(mp->m_super->s_user_ns, gdqp->q_id); in xfs_blockgc_free_dquots()
1552 icw.icw_flags |= XFS_ICWALK_FLAG_GID; in xfs_blockgc_free_dquots()
1557 icw.icw_prid = pdqp->q_id; in xfs_blockgc_free_dquots()
1558 icw.icw_flags |= XFS_ICWALK_FLAG_PRID; in xfs_blockgc_free_dquots()
1565 return xfs_blockgc_free_space(mp, &icw); in xfs_blockgc_free_dquots()
1599 struct xfs_icwalk *icw) in xfs_icwalk_igrab() argument
1605 return xfs_reclaim_igrab(ip, icw); in xfs_icwalk_igrab()
1620 struct xfs_icwalk *icw) in xfs_icwalk_process_inode() argument
1626 error = xfs_blockgc_scan_inode(ip, icw); in xfs_icwalk_process_inode()
1643 struct xfs_icwalk *icw) in xfs_icwalk_ag() argument
1683 if (done || !xfs_icwalk_igrab(goal, ip, icw)) in xfs_icwalk_ag()
1712 icw); in xfs_icwalk_ag()
1727 if (icw && (icw->icw_flags & XFS_ICWALK_FLAG_SCAN_LIMIT)) { in xfs_icwalk_ag()
1728 icw->icw_scan_limit -= XFS_LOOKUP_BATCH; in xfs_icwalk_ag()
1729 if (icw->icw_scan_limit <= 0) in xfs_icwalk_ag()
1752 struct xfs_icwalk *icw) in xfs_icwalk() argument
1760 error = xfs_icwalk_ag(pag, goal, icw); in xfs_icwalk()