• 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()
87 if (xchk_should_terminate(sc, &error)) in xchk_quota_item()
96 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
109 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
111 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
114 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
116 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
119 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
121 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
133 xchk_fblock_set_warning(sc, XFS_DATA_FORK, in xchk_quota_item()
137 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, in xchk_quota_item()
141 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
153 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
157 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
161 xchk_fblock_set_warning(sc, XFS_DATA_FORK, offset); in xchk_quota_item()
164 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_quota_item()
173 struct xfs_scrub *sc) in xchk_quota_data_fork() argument
177 struct xfs_quotainfo *qi = sc->mp->m_quotainfo; in xchk_quota_data_fork()
183 error = xchk_metadata_inode_forks(sc); in xchk_quota_data_fork()
184 if (error || (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_quota_data_fork()
189 ifp = XFS_IFORK_PTR(sc->ip, XFS_DATA_FORK); in xchk_quota_data_fork()
191 if (xchk_should_terminate(sc, &error)) in xchk_quota_data_fork()
200 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, in xchk_quota_data_fork()
212 struct xfs_scrub *sc) in xchk_quota() argument
215 struct xfs_mount *mp = sc->mp; in xchk_quota()
220 dqtype = xchk_quota_to_dqtype(sc); in xchk_quota()
223 error = xchk_quota_data_fork(sc); in xchk_quota()
226 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_quota()
234 xfs_iunlock(sc->ip, sc->ilock_flags); in xchk_quota()
235 sc->ilock_flags = 0; in xchk_quota()
236 sqi.sc = sc; in xchk_quota()
239 sc->ilock_flags = XFS_ILOCK_EXCL; in xchk_quota()
240 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_quota()
241 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, in xchk_quota()