Lines Matching full:mp

39 	struct xfs_mount		*mp,  in xfs_failure_pgoff()  argument
43 loff_t pos = XFS_FSB_TO_B(mp, rec->rm_offset); in xfs_failure_pgoff()
46 pos += XFS_FSB_TO_B(mp, in xfs_failure_pgoff()
53 struct xfs_mount *mp, in xfs_failure_pgcnt() argument
68 return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT; in xfs_failure_pgcnt()
77 struct xfs_mount *mp = cur->bc_mp; in xfs_dax_failure_fn() local
95 error = xfs_iget(mp, cur->bc_tp, rec->rm_owner, XFS_IGET_INCORE, in xfs_dax_failure_fn()
106 pgoff = xfs_failure_pgoff(mp, rec, notify); in xfs_dax_failure_fn()
107 pgcnt = xfs_failure_pgcnt(mp, rec, notify); in xfs_dax_failure_fn()
125 struct xfs_mount *mp) in xfs_dax_notify_failure_freeze() argument
127 struct super_block *sb = mp->m_super; in xfs_dax_notify_failure_freeze()
132 xfs_emerg(mp, "already frozen by kernel, err=%d", error); in xfs_dax_notify_failure_freeze()
139 struct xfs_mount *mp, in xfs_dax_notify_failure_thaw() argument
142 struct super_block *sb = mp->m_super; in xfs_dax_notify_failure_thaw()
148 xfs_emerg(mp, "still frozen after notify failure, err=%d", in xfs_dax_notify_failure_thaw()
200 struct xfs_mount *mp, in xfs_dax_notify_logdev_failure() argument
213 error = xfs_dax_translate_range(mp->m_logdev_targp, in xfs_dax_notify_logdev_failure()
227 xfs_err(mp, "ondisk log corrupt, shutting down fs!"); in xfs_dax_notify_logdev_failure()
228 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_ONDISK); in xfs_dax_notify_logdev_failure()
234 struct xfs_mount *mp, in xfs_dax_notify_dev_failure() argument
251 if (!xfs_has_rmapbt(mp)) { in xfs_dax_notify_dev_failure()
252 xfs_debug(mp, "notify_failure() needs rmapbt enabled!"); in xfs_dax_notify_dev_failure()
257 mp->m_rtdev_targp : mp->m_ddev_targp, in xfs_dax_notify_dev_failure()
263 start_bno = xfs_daddr_to_rtb(mp, daddr); in xfs_dax_notify_dev_failure()
264 end_bno = xfs_daddr_to_rtb(mp, daddr + bblen - 1); in xfs_dax_notify_dev_failure()
266 start_bno = XFS_DADDR_TO_FSB(mp, daddr); in xfs_dax_notify_dev_failure()
267 end_bno = XFS_DADDR_TO_FSB(mp, daddr + bblen - 1); in xfs_dax_notify_dev_failure()
271 xfs_info(mp, "Device is about to be removed!"); in xfs_dax_notify_dev_failure()
280 kernel_frozen = xfs_dax_notify_failure_freeze(mp) == 0; in xfs_dax_notify_dev_failure()
283 error = xfs_trans_alloc_empty(mp, &tp); in xfs_dax_notify_dev_failure()
287 start_gno = xfs_fsb_to_gno(mp, start_bno, type); in xfs_dax_notify_dev_failure()
288 end_gno = xfs_fsb_to_gno(mp, end_bno, type); in xfs_dax_notify_dev_failure()
289 while ((xg = xfs_group_next_range(mp, xg, start_gno, end_gno, type))) { in xfs_dax_notify_dev_failure()
304 cur = xfs_rmapbt_init_cursor(mp, tp, agf_bp, pag); in xfs_dax_notify_dev_failure()
318 xfs_fsb_to_gbno(mp, start_bno, type); in xfs_dax_notify_dev_failure()
321 xfs_fsb_to_gbno(mp, end_bno, type); in xfs_dax_notify_dev_failure()
350 xfs_force_shutdown(mp, SHUTDOWN_FORCE_UMOUNT); in xfs_dax_notify_dev_failure()
352 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_ONDISK); in xfs_dax_notify_dev_failure()
360 xfs_dax_notify_failure_thaw(mp, kernel_frozen); in xfs_dax_notify_dev_failure()
372 struct xfs_mount *mp = dax_holder(dax_dev); in xfs_dax_notify_failure() local
374 if (!(mp->m_super->s_flags & SB_BORN)) { in xfs_dax_notify_failure()
375 xfs_warn(mp, "filesystem is not ready for notify_failure()!"); in xfs_dax_notify_failure()
379 if (mp->m_logdev_targp != mp->m_ddev_targp && in xfs_dax_notify_failure()
380 mp->m_logdev_targp->bt_daxdev == dax_dev) { in xfs_dax_notify_failure()
381 return xfs_dax_notify_logdev_failure(mp, offset, len, mf_flags); in xfs_dax_notify_failure()
384 return xfs_dax_notify_dev_failure(mp, offset, len, mf_flags, in xfs_dax_notify_failure()
385 (mp->m_rtdev_targp && mp->m_rtdev_targp->bt_daxdev == dax_dev) ? in xfs_dax_notify_failure()