Lines Matching refs:mp

36 	struct xfs_mount		*mp,
40 loff_t pos = XFS_FSB_TO_B(mp, rec->rm_offset);
43 pos += XFS_FSB_TO_B(mp,
50 struct xfs_mount *mp,
65 return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT;
74 struct xfs_mount *mp = cur->bc_mp;
92 error = xfs_iget(mp, cur->bc_tp, rec->rm_owner, XFS_IGET_INCORE,
103 pgoff = xfs_failure_pgoff(mp, rec, notify);
104 pgcnt = xfs_failure_pgcnt(mp, rec, notify);
122 struct xfs_mount *mp)
124 struct super_block *sb = mp->m_super;
129 xfs_emerg(mp, "already frozen by kernel, err=%d", error);
136 struct xfs_mount *mp,
139 struct super_block *sb = mp->m_super;
145 xfs_emerg(mp, "still frozen after notify failure, err=%d",
158 struct xfs_mount *mp,
169 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, daddr);
170 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno);
171 xfs_fsblock_t end_fsbno = XFS_DADDR_TO_FSB(mp,
173 xfs_agnumber_t end_agno = XFS_FSB_TO_AGNO(mp, end_fsbno);
176 xfs_info(mp, "Device is about to be removed!");
185 kernel_frozen = xfs_dax_notify_failure_freeze(mp) == 0;
188 error = xfs_trans_alloc_empty(mp, &tp);
199 pag = xfs_perag_get(mp, agno);
206 cur = xfs_rmapbt_init_cursor(mp, tp, agf_bp, pag);
213 ri_low.rm_startblock = XFS_FSB_TO_AGBNO(mp, fsbno);
215 ri_high.rm_startblock = XFS_FSB_TO_AGBNO(mp, end_fsbno);
231 fsbno = XFS_AGB_TO_FSB(mp, agno + 1, 0);
243 xfs_force_shutdown(mp, SHUTDOWN_FORCE_UMOUNT);
245 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_ONDISK);
253 xfs_dax_notify_failure_thaw(mp, kernel_frozen);
265 struct xfs_mount *mp = dax_holder(dax_dev);
269 if (!(mp->m_super->s_flags & SB_BORN)) {
270 xfs_warn(mp, "filesystem is not ready for notify_failure()!");
274 if (mp->m_rtdev_targp && mp->m_rtdev_targp->bt_daxdev == dax_dev) {
275 xfs_debug(mp,
280 if (mp->m_logdev_targp && mp->m_logdev_targp->bt_daxdev == dax_dev &&
281 mp->m_logdev_targp != mp->m_ddev_targp) {
290 xfs_err(mp, "ondisk log corrupt, shutting down fs!");
291 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_ONDISK);
295 if (!xfs_has_rmapbt(mp)) {
296 xfs_debug(mp, "notify_failure() needs rmapbt enabled!");
300 ddev_start = mp->m_ddev_targp->bt_dax_part_off;
301 ddev_end = ddev_start + bdev_nr_bytes(mp->m_ddev_targp->bt_bdev) - 1;
306 len = bdev_nr_bytes(mp->m_ddev_targp->bt_bdev);
325 return xfs_dax_notify_ddev_failure(mp, BTOBB(offset), BTOBB(len),