• Home
  • Raw
  • Download

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
46 if (!XFS_IS_QUOTA_RUNNING(sc->mp) || !XFS_IS_QUOTA_ON(sc->mp)) in xchk_setup_quota()
49 dqtype = xchk_quota_to_dqtype(sc); in xchk_setup_quota()
52 sc->flags |= XCHK_HAS_QUOTAOFFLOCK; in xchk_setup_quota()
53 mutex_lock(&sc->mp->m_quotainfo->qi_quotaofflock); in xchk_setup_quota()
54 if (!xfs_this_quota_on(sc->mp, dqtype)) in xchk_setup_quota()
56 error = xchk_setup_fs(sc, ip); in xchk_setup_quota()
59 sc->ip = xfs_quota_inode(sc->mp, dqtype); in xchk_setup_quota()
60 xfs_ilock(sc->ip, XFS_ILOCK_EXCL); in xchk_setup_quota()
61 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_setup_quota()
68 struct xfs_scrub *sc; member
80 struct xfs_scrub *sc = sqi->sc; in xchk_quota_item() local
81 struct xfs_mount *mp = sc->mp; in xchk_quota_item()
103 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
109 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
112 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
132 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
134 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
137 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
139 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
142 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
144 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
159 xchk_fblock_set_warning(sc, XFS_DATA_FORK, in xchk_quota_item()
163 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, in xchk_quota_item()
167 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
175 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
177 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
179 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
187 struct xfs_scrub *sc) in xchk_quota_data_fork() argument
191 struct xfs_quotainfo *qi = sc->mp->m_quotainfo; in xchk_quota_data_fork()
197 error = xchk_metadata_inode_forks(sc); in xchk_quota_data_fork()
198 if (error || (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_quota_data_fork()
203 ifp = XFS_IFORK_PTR(sc->ip, XFS_DATA_FORK); in xchk_quota_data_fork()
205 if (xchk_should_terminate(sc, &error)) in xchk_quota_data_fork()
214 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, in xchk_quota_data_fork()
226 struct xfs_scrub *sc) in xchk_quota() argument
229 struct xfs_mount *mp = sc->mp; in xchk_quota()
234 dqtype = xchk_quota_to_dqtype(sc); in xchk_quota()
237 error = xchk_quota_data_fork(sc); in xchk_quota()
240 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_quota()
248 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_quota()
249 sc->ilock_flags = 0; in xchk_quota()
250 sqi.sc = sc; in xchk_quota()
253 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_quota()
254 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_quota()
255 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, in xchk_quota()