Lines Matching refs:mp

63 	struct xfs_mount	*mp = ip->i_mount;  in xfs_find_bdev_for_inode()  local
66 return mp->m_rtdev_targp->bt_bdev; in xfs_find_bdev_for_inode()
68 return mp->m_ddev_targp->bt_bdev; in xfs_find_bdev_for_inode()
104 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; in xfs_setfilesize_trans_alloc() local
108 tp = xfs_trans_alloc(mp, XFS_TRANS_FSYNC_TS); in xfs_setfilesize_trans_alloc()
110 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_fsyncts, 0, 0); in xfs_setfilesize_trans_alloc()
195 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; in xfs_finish_ioend() local
198 queue_work(mp->m_unwritten_workqueue, &ioend->io_work); in xfs_finish_ioend()
200 queue_work(mp->m_data_workqueue, &ioend->io_work); in xfs_finish_ioend()
290 struct xfs_mount *mp = ip->i_mount; in xfs_map_blocks() local
297 if (XFS_FORCED_SHUTDOWN(mp)) in xfs_map_blocks()
311 ASSERT(offset <= mp->m_super->s_maxbytes); in xfs_map_blocks()
313 if (offset + count > mp->m_super->s_maxbytes) in xfs_map_blocks()
314 count = mp->m_super->s_maxbytes - offset; in xfs_map_blocks()
315 end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)offset + count); in xfs_map_blocks()
316 offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_map_blocks()
1384 struct xfs_mount *mp = ip->i_mount; in __xfs_get_blocks() local
1394 if (XFS_FORCED_SHUTDOWN(mp)) in __xfs_get_blocks()
1418 ASSERT(offset <= mp->m_super->s_maxbytes); in __xfs_get_blocks()
1419 if (offset + size > mp->m_super->s_maxbytes) in __xfs_get_blocks()
1420 size = mp->m_super->s_maxbytes - offset; in __xfs_get_blocks()
1421 end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)offset + size); in __xfs_get_blocks()
1422 offset_fsb = XFS_B_TO_FSBT(mp, offset); in __xfs_get_blocks()
1580 struct xfs_mount *mp = XFS_I(inode)->i_mount; in __xfs_end_io_direct_write() local
1582 if (XFS_FORCED_SHUTDOWN(mp) || ioend->io_error) in __xfs_end_io_direct_write()