Lines Matching refs:icw

49 		enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
51 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
869 struct xfs_icwalk *icw) in xfs_reclaim_igrab() argument
883 (!icw || !(icw->icw_flags & XFS_ICWALK_FLAG_RECLAIM_SICK))) { in xfs_reclaim_igrab()
1010 struct xfs_icwalk icw = { in xfs_reclaim_inodes() local
1015 icw.icw_flags |= XFS_ICWALK_FLAG_RECLAIM_SICK; in xfs_reclaim_inodes()
1019 xfs_icwalk(mp, XFS_ICWALK_RECLAIM, &icw); in xfs_reclaim_inodes()
1035 struct xfs_icwalk icw = { in xfs_reclaim_inodes_nr() local
1041 icw.icw_flags |= XFS_ICWALK_FLAG_RECLAIM_SICK; in xfs_reclaim_inodes_nr()
1047 xfs_icwalk(mp, XFS_ICWALK_RECLAIM, &icw); in xfs_reclaim_inodes_nr()
1076 struct xfs_icwalk *icw) in xfs_icwalk_match_id() argument
1078 if ((icw->icw_flags & XFS_ICWALK_FLAG_UID) && in xfs_icwalk_match_id()
1079 !uid_eq(VFS_I(ip)->i_uid, icw->icw_uid)) in xfs_icwalk_match_id()
1082 if ((icw->icw_flags & XFS_ICWALK_FLAG_GID) && in xfs_icwalk_match_id()
1083 !gid_eq(VFS_I(ip)->i_gid, icw->icw_gid)) in xfs_icwalk_match_id()
1086 if ((icw->icw_flags & XFS_ICWALK_FLAG_PRID) && in xfs_icwalk_match_id()
1087 ip->i_projid != icw->icw_prid) in xfs_icwalk_match_id()
1100 struct xfs_icwalk *icw) in xfs_icwalk_match_id_union() argument
1102 if ((icw->icw_flags & XFS_ICWALK_FLAG_UID) && in xfs_icwalk_match_id_union()
1103 uid_eq(VFS_I(ip)->i_uid, icw->icw_uid)) in xfs_icwalk_match_id_union()
1106 if ((icw->icw_flags & XFS_ICWALK_FLAG_GID) && in xfs_icwalk_match_id_union()
1107 gid_eq(VFS_I(ip)->i_gid, icw->icw_gid)) in xfs_icwalk_match_id_union()
1110 if ((icw->icw_flags & XFS_ICWALK_FLAG_PRID) && in xfs_icwalk_match_id_union()
1111 ip->i_projid == icw->icw_prid) in xfs_icwalk_match_id_union()
1125 struct xfs_icwalk *icw) in xfs_icwalk_match() argument
1129 if (!icw) in xfs_icwalk_match()
1132 if (icw->icw_flags & XFS_ICWALK_FLAG_UNION) in xfs_icwalk_match()
1133 match = xfs_icwalk_match_id_union(ip, icw); in xfs_icwalk_match()
1135 match = xfs_icwalk_match_id(ip, icw); in xfs_icwalk_match()
1140 if ((icw->icw_flags & XFS_ICWALK_FLAG_MINFILESIZE) && in xfs_icwalk_match()
1141 XFS_ISIZE(ip) < icw->icw_min_file_size) in xfs_icwalk_match()
1167 struct xfs_icwalk *icw, in xfs_inode_free_eofblocks() argument
1172 wait = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_inode_free_eofblocks()
1184 if (!xfs_icwalk_match(ip, icw)) in xfs_inode_free_eofblocks()
1288 struct xfs_icwalk *icw) in xfs_prep_free_cowblocks() argument
1292 sync = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_prep_free_cowblocks()
1338 struct xfs_icwalk *icw, in xfs_inode_free_cowblocks() argument
1344 wait = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_inode_free_cowblocks()
1349 if (!xfs_prep_free_cowblocks(ip, icw)) in xfs_inode_free_cowblocks()
1352 if (!xfs_icwalk_match(ip, icw)) in xfs_inode_free_cowblocks()
1378 if (xfs_prep_free_cowblocks(ip, icw)) in xfs_inode_free_cowblocks()
1478 struct xfs_icwalk *icw) in xfs_blockgc_scan_inode() argument
1483 error = xfs_inode_free_eofblocks(ip, icw, &lockflags); in xfs_blockgc_scan_inode()
1487 error = xfs_inode_free_cowblocks(ip, icw, &lockflags); in xfs_blockgc_scan_inode()
1521 struct xfs_icwalk *icw) in xfs_blockgc_free_space() argument
1525 trace_xfs_blockgc_free_space(mp, icw, _RET_IP_); in xfs_blockgc_free_space()
1527 error = xfs_icwalk(mp, XFS_ICWALK_BLOCKGC, icw); in xfs_blockgc_free_space()
1578 struct xfs_icwalk icw = {0}; in xfs_blockgc_free_dquots() local
1588 icw.icw_flags = XFS_ICWALK_FLAG_UNION | iwalk_flags; in xfs_blockgc_free_dquots()
1591 icw.icw_uid = make_kuid(mp->m_super->s_user_ns, udqp->q_id); in xfs_blockgc_free_dquots()
1592 icw.icw_flags |= XFS_ICWALK_FLAG_UID; in xfs_blockgc_free_dquots()
1597 icw.icw_gid = make_kgid(mp->m_super->s_user_ns, gdqp->q_id); in xfs_blockgc_free_dquots()
1598 icw.icw_flags |= XFS_ICWALK_FLAG_GID; in xfs_blockgc_free_dquots()
1603 icw.icw_prid = pdqp->q_id; in xfs_blockgc_free_dquots()
1604 icw.icw_flags |= XFS_ICWALK_FLAG_PRID; in xfs_blockgc_free_dquots()
1611 return xfs_blockgc_free_space(mp, &icw); in xfs_blockgc_free_dquots()
1645 struct xfs_icwalk *icw) in xfs_icwalk_igrab() argument
1651 return xfs_reclaim_igrab(ip, icw); in xfs_icwalk_igrab()
1666 struct xfs_icwalk *icw) in xfs_icwalk_process_inode() argument
1672 error = xfs_blockgc_scan_inode(ip, icw); in xfs_icwalk_process_inode()
1689 struct xfs_icwalk *icw) in xfs_icwalk_ag() argument
1729 if (done || !xfs_icwalk_igrab(goal, ip, icw)) in xfs_icwalk_ag()
1758 icw); in xfs_icwalk_ag()
1773 if (icw && (icw->icw_flags & XFS_ICWALK_FLAG_SCAN_LIMIT)) { in xfs_icwalk_ag()
1774 icw->icw_scan_limit -= XFS_LOOKUP_BATCH; in xfs_icwalk_ag()
1775 if (icw->icw_scan_limit <= 0) in xfs_icwalk_ag()
1798 struct xfs_icwalk *icw) in xfs_icwalk() argument
1805 error = xfs_icwalk_ag(pag, goal, icw); in xfs_icwalk()