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()
256 error = xfs_dax_translate_range(xfs_group_type_buftarg(mp, type), in xfs_dax_notify_dev_failure()
262 start_bno = xfs_daddr_to_rtb(mp, daddr); in xfs_dax_notify_dev_failure()
263 end_bno = xfs_daddr_to_rtb(mp, daddr + bblen - 1); in xfs_dax_notify_dev_failure()
265 start_bno = XFS_DADDR_TO_FSB(mp, daddr); in xfs_dax_notify_dev_failure()
266 end_bno = XFS_DADDR_TO_FSB(mp, daddr + bblen - 1); in xfs_dax_notify_dev_failure()
270 xfs_info(mp, "Device is about to be removed!"); in xfs_dax_notify_dev_failure()
279 kernel_frozen = xfs_dax_notify_failure_freeze(mp) == 0; in xfs_dax_notify_dev_failure()
282 tp = xfs_trans_alloc_empty(mp); in xfs_dax_notify_dev_failure()
283 start_gno = xfs_fsb_to_gno(mp, start_bno, type); in xfs_dax_notify_dev_failure()
284 end_gno = xfs_fsb_to_gno(mp, end_bno, type); in xfs_dax_notify_dev_failure()
285 while ((xg = xfs_group_next_range(mp, xg, start_gno, end_gno, type))) { in xfs_dax_notify_dev_failure()
300 cur = xfs_rmapbt_init_cursor(mp, tp, agf_bp, pag); in xfs_dax_notify_dev_failure()
314 xfs_fsb_to_gbno(mp, start_bno, type); in xfs_dax_notify_dev_failure()
317 xfs_fsb_to_gbno(mp, end_bno, type); in xfs_dax_notify_dev_failure()
346 xfs_force_shutdown(mp, SHUTDOWN_FORCE_UMOUNT); in xfs_dax_notify_dev_failure()
348 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_ONDISK); in xfs_dax_notify_dev_failure()
355 xfs_dax_notify_failure_thaw(mp, kernel_frozen); in xfs_dax_notify_dev_failure()
367 struct xfs_mount *mp = dax_holder(dax_dev); in xfs_dax_notify_failure() local
369 if (!(mp->m_super->s_flags & SB_BORN)) { in xfs_dax_notify_failure()
370 xfs_warn(mp, "filesystem is not ready for notify_failure()!"); in xfs_dax_notify_failure()
374 if (mp->m_logdev_targp != mp->m_ddev_targp && in xfs_dax_notify_failure()
375 mp->m_logdev_targp->bt_daxdev == dax_dev) { in xfs_dax_notify_failure()
376 return xfs_dax_notify_logdev_failure(mp, offset, len, mf_flags); in xfs_dax_notify_failure()
379 return xfs_dax_notify_dev_failure(mp, offset, len, mf_flags, in xfs_dax_notify_failure()
380 (mp->m_rtdev_targp && mp->m_rtdev_targp->bt_daxdev == dax_dev) ? in xfs_dax_notify_failure()