Lines Matching refs:icw
48 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
50 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
836 struct xfs_icwalk *icw) in xfs_reclaim_igrab() argument
850 (!icw || !(icw->icw_flags & XFS_ICWALK_FLAG_RECLAIM_SICK))) { in xfs_reclaim_igrab()
977 struct xfs_icwalk icw = { in xfs_reclaim_inodes() local
982 icw.icw_flags |= XFS_ICWALK_FLAG_RECLAIM_SICK; in xfs_reclaim_inodes()
986 xfs_icwalk(mp, XFS_ICWALK_RECLAIM, &icw); in xfs_reclaim_inodes()
1002 struct xfs_icwalk icw = { in xfs_reclaim_inodes_nr() local
1008 icw.icw_flags |= XFS_ICWALK_FLAG_RECLAIM_SICK; in xfs_reclaim_inodes_nr()
1014 xfs_icwalk(mp, XFS_ICWALK_RECLAIM, &icw); in xfs_reclaim_inodes_nr()
1041 struct xfs_icwalk *icw) in xfs_icwalk_match_id() argument
1043 if ((icw->icw_flags & XFS_ICWALK_FLAG_UID) && in xfs_icwalk_match_id()
1044 !uid_eq(VFS_I(ip)->i_uid, icw->icw_uid)) in xfs_icwalk_match_id()
1047 if ((icw->icw_flags & XFS_ICWALK_FLAG_GID) && in xfs_icwalk_match_id()
1048 !gid_eq(VFS_I(ip)->i_gid, icw->icw_gid)) in xfs_icwalk_match_id()
1051 if ((icw->icw_flags & XFS_ICWALK_FLAG_PRID) && in xfs_icwalk_match_id()
1052 ip->i_projid != icw->icw_prid) in xfs_icwalk_match_id()
1065 struct xfs_icwalk *icw) in xfs_icwalk_match_id_union() argument
1067 if ((icw->icw_flags & XFS_ICWALK_FLAG_UID) && in xfs_icwalk_match_id_union()
1068 uid_eq(VFS_I(ip)->i_uid, icw->icw_uid)) in xfs_icwalk_match_id_union()
1071 if ((icw->icw_flags & XFS_ICWALK_FLAG_GID) && in xfs_icwalk_match_id_union()
1072 gid_eq(VFS_I(ip)->i_gid, icw->icw_gid)) in xfs_icwalk_match_id_union()
1075 if ((icw->icw_flags & XFS_ICWALK_FLAG_PRID) && in xfs_icwalk_match_id_union()
1076 ip->i_projid == icw->icw_prid) in xfs_icwalk_match_id_union()
1090 struct xfs_icwalk *icw) in xfs_icwalk_match() argument
1094 if (!icw) in xfs_icwalk_match()
1097 if (icw->icw_flags & XFS_ICWALK_FLAG_UNION) in xfs_icwalk_match()
1098 match = xfs_icwalk_match_id_union(ip, icw); in xfs_icwalk_match()
1100 match = xfs_icwalk_match_id(ip, icw); in xfs_icwalk_match()
1105 if ((icw->icw_flags & XFS_ICWALK_FLAG_MINFILESIZE) && in xfs_icwalk_match()
1106 XFS_ISIZE(ip) < icw->icw_min_file_size) in xfs_icwalk_match()
1132 struct xfs_icwalk *icw, in xfs_inode_free_eofblocks() argument
1137 wait = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_inode_free_eofblocks()
1149 if (!xfs_icwalk_match(ip, icw)) in xfs_inode_free_eofblocks()
1294 struct xfs_icwalk *icw, in xfs_inode_free_cowblocks() argument
1300 wait = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_inode_free_cowblocks()
1308 if (!xfs_icwalk_match(ip, icw)) in xfs_inode_free_cowblocks()
1435 struct xfs_icwalk *icw) in xfs_blockgc_scan_inode() argument
1440 error = xfs_inode_free_eofblocks(ip, icw, &lockflags); in xfs_blockgc_scan_inode()
1444 error = xfs_inode_free_cowblocks(ip, icw, &lockflags); in xfs_blockgc_scan_inode()
1478 struct xfs_icwalk *icw) in xfs_blockgc_free_space() argument
1482 trace_xfs_blockgc_free_space(mp, icw, _RET_IP_); in xfs_blockgc_free_space()
1484 error = xfs_icwalk(mp, XFS_ICWALK_BLOCKGC, icw); in xfs_blockgc_free_space()
1538 struct xfs_icwalk icw = {0}; in xfs_blockgc_free_dquots() local
1548 icw.icw_flags = XFS_ICWALK_FLAG_UNION | iwalk_flags; in xfs_blockgc_free_dquots()
1551 icw.icw_uid = make_kuid(mp->m_super->s_user_ns, udqp->q_id); in xfs_blockgc_free_dquots()
1552 icw.icw_flags |= XFS_ICWALK_FLAG_UID; in xfs_blockgc_free_dquots()
1557 icw.icw_gid = make_kgid(mp->m_super->s_user_ns, gdqp->q_id); in xfs_blockgc_free_dquots()
1558 icw.icw_flags |= XFS_ICWALK_FLAG_GID; in xfs_blockgc_free_dquots()
1563 icw.icw_prid = pdqp->q_id; in xfs_blockgc_free_dquots()
1564 icw.icw_flags |= XFS_ICWALK_FLAG_PRID; in xfs_blockgc_free_dquots()
1571 return xfs_blockgc_free_space(mp, &icw); in xfs_blockgc_free_dquots()
1605 struct xfs_icwalk *icw) in xfs_icwalk_igrab() argument
1611 return xfs_reclaim_igrab(ip, icw); in xfs_icwalk_igrab()
1626 struct xfs_icwalk *icw) in xfs_icwalk_process_inode() argument
1632 error = xfs_blockgc_scan_inode(ip, icw); in xfs_icwalk_process_inode()
1649 struct xfs_icwalk *icw) in xfs_icwalk_ag() argument
1689 if (done || !xfs_icwalk_igrab(goal, ip, icw)) in xfs_icwalk_ag()
1718 icw); in xfs_icwalk_ag()
1733 if (icw && (icw->icw_flags & XFS_ICWALK_FLAG_SCAN_LIMIT)) { in xfs_icwalk_ag()
1734 icw->icw_scan_limit -= XFS_LOOKUP_BATCH; in xfs_icwalk_ag()
1735 if (icw->icw_scan_limit <= 0) in xfs_icwalk_ag()
1758 struct xfs_icwalk *icw) in xfs_icwalk() argument
1766 error = xfs_icwalk_ag(pag, goal, icw); in xfs_icwalk()