Lines Matching refs:mp

52 	struct xfs_mount *mp,  in xfs_attr3_rmt_blocks()  argument
55 if (xfs_sb_version_hascrc(&mp->m_sb)) { in xfs_attr3_rmt_blocks()
56 int buflen = XFS_ATTR3_RMT_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_attr3_rmt_blocks()
59 return XFS_B_TO_FSB(mp, attrlen); in xfs_attr3_rmt_blocks()
92 struct xfs_mount *mp, in xfs_attr3_rmt_verify() argument
99 if (!xfs_sb_version_hascrc(&mp->m_sb)) in xfs_attr3_rmt_verify()
103 if (!uuid_equal(&rmt->rm_uuid, &mp->m_sb.sb_uuid)) in xfs_attr3_rmt_verify()
122 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_rmt_read_verify() local
126 int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_read_verify()
129 if (!xfs_sb_version_hascrc(&mp->m_sb)) in xfs_attr3_rmt_read_verify()
142 if (!xfs_attr3_rmt_verify(mp, ptr, blksize, bno)) { in xfs_attr3_rmt_read_verify()
161 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_rmt_write_verify() local
162 int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_write_verify()
168 if (!xfs_sb_version_hascrc(&mp->m_sb)) in xfs_attr3_rmt_write_verify()
179 if (!xfs_attr3_rmt_verify(mp, ptr, blksize, bno)) { in xfs_attr3_rmt_write_verify()
210 struct xfs_mount *mp, in xfs_attr3_rmt_hdr_set() argument
219 if (!xfs_sb_version_hascrc(&mp->m_sb)) in xfs_attr3_rmt_hdr_set()
225 uuid_copy(&rmt->rm_uuid, &mp->m_sb.sb_uuid); in xfs_attr3_rmt_hdr_set()
249 struct xfs_mount *mp, in xfs_attr_rmtval_copyout() argument
259 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyout()
265 int byte_cnt = XFS_ATTR3_RMT_BUF_SPACE(mp, blksize); in xfs_attr_rmtval_copyout()
269 if (xfs_sb_version_hascrc(&mp->m_sb)) { in xfs_attr_rmtval_copyout()
272 xfs_alert(mp, in xfs_attr_rmtval_copyout()
297 struct xfs_mount *mp, in xfs_attr_rmtval_copyin() argument
307 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyin()
313 int byte_cnt = XFS_ATTR3_RMT_BUF_SPACE(mp, blksize); in xfs_attr_rmtval_copyin()
316 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, in xfs_attr_rmtval_copyin()
353 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get() local
385 dblkno = XFS_FSB_TO_DADDR(mp, map[i].br_startblock); in xfs_attr_rmtval_get()
386 dblkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount); in xfs_attr_rmtval_get()
387 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_attr_rmtval_get()
393 error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino, in xfs_attr_rmtval_get()
418 struct xfs_mount *mp = dp->i_mount; in xfs_attr_rmtval_set() local
437 blkcnt = xfs_attr3_rmt_blocks(mp, args->rmtvaluelen); in xfs_attr_rmtval_set()
528 dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock), in xfs_attr_rmtval_set()
529 dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); in xfs_attr_rmtval_set()
531 bp = xfs_buf_get(mp->m_ddev_targp, dblkno, dblkcnt, 0); in xfs_attr_rmtval_set()
536 xfs_attr_rmtval_copyin(mp, bp, args->dp->i_ino, &offset, in xfs_attr_rmtval_set()
561 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_remove() local
593 dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock), in xfs_attr_rmtval_remove()
594 dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); in xfs_attr_rmtval_remove()
599 bp = xfs_incore(mp->m_ddev_targp, dblkno, dblkcnt, XBF_TRYLOCK); in xfs_attr_rmtval_remove()