Lines Matching refs:mp
25 struct xfs_mount *mp) in xfs_health_unmount() argument
33 if (XFS_FORCED_SHUTDOWN(mp)) in xfs_health_unmount()
37 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_health_unmount()
38 pag = xfs_perag_get(mp, agno); in xfs_health_unmount()
41 trace_xfs_ag_unfixed_corruption(mp, agno, sick); in xfs_health_unmount()
48 xfs_rt_measure_sickness(mp, &sick, &checked); in xfs_health_unmount()
50 trace_xfs_rt_unfixed_corruption(mp, sick); in xfs_health_unmount()
58 xfs_fs_measure_sickness(mp, &sick, &checked); in xfs_health_unmount()
60 trace_xfs_fs_unfixed_corruption(mp, sick); in xfs_health_unmount()
65 xfs_warn(mp, in xfs_health_unmount()
88 xfs_fs_mark_healthy(mp, XFS_SICK_FS_COUNTERS); in xfs_health_unmount()
95 struct xfs_mount *mp, in xfs_fs_mark_sick() argument
99 trace_xfs_fs_mark_sick(mp, mask); in xfs_fs_mark_sick()
101 spin_lock(&mp->m_sb_lock); in xfs_fs_mark_sick()
102 mp->m_fs_sick |= mask; in xfs_fs_mark_sick()
103 mp->m_fs_checked |= mask; in xfs_fs_mark_sick()
104 spin_unlock(&mp->m_sb_lock); in xfs_fs_mark_sick()
110 struct xfs_mount *mp, in xfs_fs_mark_healthy() argument
114 trace_xfs_fs_mark_healthy(mp, mask); in xfs_fs_mark_healthy()
116 spin_lock(&mp->m_sb_lock); in xfs_fs_mark_healthy()
117 mp->m_fs_sick &= ~mask; in xfs_fs_mark_healthy()
118 mp->m_fs_checked |= mask; in xfs_fs_mark_healthy()
119 spin_unlock(&mp->m_sb_lock); in xfs_fs_mark_healthy()
125 struct xfs_mount *mp, in xfs_fs_measure_sickness() argument
129 spin_lock(&mp->m_sb_lock); in xfs_fs_measure_sickness()
130 *sick = mp->m_fs_sick; in xfs_fs_measure_sickness()
131 *checked = mp->m_fs_checked; in xfs_fs_measure_sickness()
132 spin_unlock(&mp->m_sb_lock); in xfs_fs_measure_sickness()
138 struct xfs_mount *mp, in xfs_rt_mark_sick() argument
142 trace_xfs_rt_mark_sick(mp, mask); in xfs_rt_mark_sick()
144 spin_lock(&mp->m_sb_lock); in xfs_rt_mark_sick()
145 mp->m_rt_sick |= mask; in xfs_rt_mark_sick()
146 mp->m_rt_checked |= mask; in xfs_rt_mark_sick()
147 spin_unlock(&mp->m_sb_lock); in xfs_rt_mark_sick()
153 struct xfs_mount *mp, in xfs_rt_mark_healthy() argument
157 trace_xfs_rt_mark_healthy(mp, mask); in xfs_rt_mark_healthy()
159 spin_lock(&mp->m_sb_lock); in xfs_rt_mark_healthy()
160 mp->m_rt_sick &= ~mask; in xfs_rt_mark_healthy()
161 mp->m_rt_checked |= mask; in xfs_rt_mark_healthy()
162 spin_unlock(&mp->m_sb_lock); in xfs_rt_mark_healthy()
168 struct xfs_mount *mp, in xfs_rt_measure_sickness() argument
172 spin_lock(&mp->m_sb_lock); in xfs_rt_measure_sickness()
173 *sick = mp->m_rt_sick; in xfs_rt_measure_sickness()
174 *checked = mp->m_rt_checked; in xfs_rt_measure_sickness()
175 spin_unlock(&mp->m_sb_lock); in xfs_rt_measure_sickness()
301 struct xfs_mount *mp, in xfs_fsop_geom_health() argument
311 xfs_fs_measure_sickness(mp, &sick, &checked); in xfs_fsop_geom_health()
315 xfs_rt_measure_sickness(mp, &sick, &checked); in xfs_fsop_geom_health()