Lines Matching refs:icw

48 		enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
50 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
825 struct xfs_icwalk *icw) in xfs_reclaim_igrab() argument
839 (!icw || !(icw->icw_flags & XFS_ICWALK_FLAG_RECLAIM_SICK))) { in xfs_reclaim_igrab()
966 struct xfs_icwalk icw = { in xfs_reclaim_inodes() local
971 icw.icw_flags |= XFS_ICWALK_FLAG_RECLAIM_SICK; in xfs_reclaim_inodes()
975 xfs_icwalk(mp, XFS_ICWALK_RECLAIM, &icw); in xfs_reclaim_inodes()
991 struct xfs_icwalk icw = { in xfs_reclaim_inodes_nr() local
997 icw.icw_flags |= XFS_ICWALK_FLAG_RECLAIM_SICK; in xfs_reclaim_inodes_nr()
1003 xfs_icwalk(mp, XFS_ICWALK_RECLAIM, &icw); in xfs_reclaim_inodes_nr()
1030 struct xfs_icwalk *icw) in xfs_icwalk_match_id() argument
1032 if ((icw->icw_flags & XFS_ICWALK_FLAG_UID) && in xfs_icwalk_match_id()
1033 !uid_eq(VFS_I(ip)->i_uid, icw->icw_uid)) in xfs_icwalk_match_id()
1036 if ((icw->icw_flags & XFS_ICWALK_FLAG_GID) && in xfs_icwalk_match_id()
1037 !gid_eq(VFS_I(ip)->i_gid, icw->icw_gid)) in xfs_icwalk_match_id()
1040 if ((icw->icw_flags & XFS_ICWALK_FLAG_PRID) && in xfs_icwalk_match_id()
1041 ip->i_projid != icw->icw_prid) in xfs_icwalk_match_id()
1054 struct xfs_icwalk *icw) in xfs_icwalk_match_id_union() argument
1056 if ((icw->icw_flags & XFS_ICWALK_FLAG_UID) && in xfs_icwalk_match_id_union()
1057 uid_eq(VFS_I(ip)->i_uid, icw->icw_uid)) in xfs_icwalk_match_id_union()
1060 if ((icw->icw_flags & XFS_ICWALK_FLAG_GID) && in xfs_icwalk_match_id_union()
1061 gid_eq(VFS_I(ip)->i_gid, icw->icw_gid)) in xfs_icwalk_match_id_union()
1064 if ((icw->icw_flags & XFS_ICWALK_FLAG_PRID) && in xfs_icwalk_match_id_union()
1065 ip->i_projid == icw->icw_prid) in xfs_icwalk_match_id_union()
1079 struct xfs_icwalk *icw) in xfs_icwalk_match() argument
1083 if (!icw) in xfs_icwalk_match()
1086 if (icw->icw_flags & XFS_ICWALK_FLAG_UNION) in xfs_icwalk_match()
1087 match = xfs_icwalk_match_id_union(ip, icw); in xfs_icwalk_match()
1089 match = xfs_icwalk_match_id(ip, icw); in xfs_icwalk_match()
1094 if ((icw->icw_flags & XFS_ICWALK_FLAG_MINFILESIZE) && in xfs_icwalk_match()
1095 XFS_ISIZE(ip) < icw->icw_min_file_size) in xfs_icwalk_match()
1121 struct xfs_icwalk *icw, in xfs_inode_free_eofblocks() argument
1126 wait = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_inode_free_eofblocks()
1138 if (!xfs_icwalk_match(ip, icw)) in xfs_inode_free_eofblocks()
1283 struct xfs_icwalk *icw, in xfs_inode_free_cowblocks() argument
1289 wait = icw && (icw->icw_flags & XFS_ICWALK_FLAG_SYNC); in xfs_inode_free_cowblocks()
1297 if (!xfs_icwalk_match(ip, icw)) in xfs_inode_free_cowblocks()
1424 struct xfs_icwalk *icw) in xfs_blockgc_scan_inode() argument
1429 error = xfs_inode_free_eofblocks(ip, icw, &lockflags); in xfs_blockgc_scan_inode()
1433 error = xfs_inode_free_cowblocks(ip, icw, &lockflags); in xfs_blockgc_scan_inode()
1467 struct xfs_icwalk *icw) in xfs_blockgc_free_space() argument
1471 trace_xfs_blockgc_free_space(mp, icw, _RET_IP_); in xfs_blockgc_free_space()
1473 error = xfs_icwalk(mp, XFS_ICWALK_BLOCKGC, icw); in xfs_blockgc_free_space()
1526 struct xfs_icwalk icw = {0}; in xfs_blockgc_free_dquots() local
1536 icw.icw_flags = XFS_ICWALK_FLAG_UNION | iwalk_flags; in xfs_blockgc_free_dquots()
1539 icw.icw_uid = make_kuid(mp->m_super->s_user_ns, udqp->q_id); in xfs_blockgc_free_dquots()
1540 icw.icw_flags |= XFS_ICWALK_FLAG_UID; in xfs_blockgc_free_dquots()
1545 icw.icw_gid = make_kgid(mp->m_super->s_user_ns, gdqp->q_id); in xfs_blockgc_free_dquots()
1546 icw.icw_flags |= XFS_ICWALK_FLAG_GID; in xfs_blockgc_free_dquots()
1551 icw.icw_prid = pdqp->q_id; in xfs_blockgc_free_dquots()
1552 icw.icw_flags |= XFS_ICWALK_FLAG_PRID; in xfs_blockgc_free_dquots()
1559 return xfs_blockgc_free_space(mp, &icw); in xfs_blockgc_free_dquots()
1593 struct xfs_icwalk *icw) in xfs_icwalk_igrab() argument
1599 return xfs_reclaim_igrab(ip, icw); in xfs_icwalk_igrab()
1614 struct xfs_icwalk *icw) in xfs_icwalk_process_inode() argument
1620 error = xfs_blockgc_scan_inode(ip, icw); in xfs_icwalk_process_inode()
1637 struct xfs_icwalk *icw) in xfs_icwalk_ag() argument
1677 if (done || !xfs_icwalk_igrab(goal, ip, icw)) in xfs_icwalk_ag()
1706 icw); in xfs_icwalk_ag()
1721 if (icw && (icw->icw_flags & XFS_ICWALK_FLAG_SCAN_LIMIT)) { in xfs_icwalk_ag()
1722 icw->icw_scan_limit -= XFS_LOOKUP_BATCH; in xfs_icwalk_ag()
1723 if (icw->icw_scan_limit <= 0) in xfs_icwalk_ag()
1746 struct xfs_icwalk *icw) in xfs_icwalk() argument
1754 error = xfs_icwalk_ag(pag, goal, icw); in xfs_icwalk()