Lines Matching refs:sc
23 struct xfs_scrub *sc) in xchk_quota_to_dqtype() argument
25 switch (sc->sm->sm_type) { in xchk_quota_to_dqtype()
40 struct xfs_scrub *sc) in xchk_setup_quota() argument
45 if (!XFS_IS_QUOTA_ON(sc->mp)) in xchk_setup_quota()
48 dqtype = xchk_quota_to_dqtype(sc); in xchk_setup_quota()
52 if (!xfs_this_quota_on(sc->mp, dqtype)) in xchk_setup_quota()
55 error = xchk_setup_fs(sc); in xchk_setup_quota()
58 sc->ip = xfs_quota_inode(sc->mp, dqtype); in xchk_setup_quota()
59 xfs_ilock(sc->ip, XFS_ILOCK_EXCL); in xchk_setup_quota()
60 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_setup_quota()
67 struct xfs_scrub *sc; member
79 struct xfs_scrub *sc = sqi->sc; in xchk_quota_item() local
80 struct xfs_mount *mp = sc->mp; in xchk_quota_item()
86 if (xchk_should_terminate(sc, &error)) in xchk_quota_item()
95 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
108 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
110 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
113 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
115 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
118 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
120 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
132 xchk_fblock_set_warning(sc, XFS_DATA_FORK, in xchk_quota_item()
136 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, in xchk_quota_item()
140 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
152 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
156 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
160 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
163 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_quota_item()
172 struct xfs_scrub *sc) in xchk_quota_data_fork() argument
176 struct xfs_quotainfo *qi = sc->mp->m_quotainfo; in xchk_quota_data_fork()
182 error = xchk_metadata_inode_forks(sc); in xchk_quota_data_fork()
183 if (error || (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_quota_data_fork()
188 ifp = xfs_ifork_ptr(sc->ip, XFS_DATA_FORK); in xchk_quota_data_fork()
190 if (xchk_should_terminate(sc, &error)) in xchk_quota_data_fork()
199 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, in xchk_quota_data_fork()
211 struct xfs_scrub *sc) in xchk_quota() argument
214 struct xfs_mount *mp = sc->mp; in xchk_quota()
219 dqtype = xchk_quota_to_dqtype(sc); in xchk_quota()
222 error = xchk_quota_data_fork(sc); in xchk_quota()
225 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_quota()
233 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_quota()
234 sc->ilock_flags = 0; in xchk_quota()
235 sqi.sc = sc; in xchk_quota()
238 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_quota()
239 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_quota()
242 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, in xchk_quota()