Lines Matching refs:mp

253 	struct xfs_mount	*mp = bp->b_target->bt_mount;  in xfs_attr3_leaf_verify()  local
257 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf); in xfs_attr3_leaf_verify()
259 if (xfs_sb_version_hascrc(&mp->m_sb)) { in xfs_attr3_leaf_verify()
265 if (!uuid_equal(&hdr3->info.uuid, &mp->m_sb.sb_uuid)) in xfs_attr3_leaf_verify()
286 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_leaf_write_verify() local
296 if (!xfs_sb_version_hascrc(&mp->m_sb)) in xfs_attr3_leaf_write_verify()
315 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_leaf_read_verify() local
317 if (xfs_sb_version_hascrc(&mp->m_sb) && in xfs_attr3_leaf_read_verify()
385 xfs_mount_t *mp = dp->i_mount; in xfs_attr_shortform_bytesfit() local
388 offset = (XFS_LITINO(mp, dp->i_d.di_version) - bytes) >> 3; in xfs_attr_shortform_bytesfit()
417 if (!(mp->m_flags & XFS_MOUNT_ATTR2)) in xfs_attr_shortform_bytesfit()
447 dsize = XFS_BMAP_BROOT_SPACE(mp, dp->i_df.if_broot); in xfs_attr_shortform_bytesfit()
459 maxforkoff = XFS_LITINO(mp, dp->i_d.di_version) - in xfs_attr_shortform_bytesfit()
474 xfs_sbversion_add_attr2(xfs_mount_t *mp, xfs_trans_t *tp) in xfs_sbversion_add_attr2() argument
476 if ((mp->m_flags & XFS_MOUNT_ATTR2) && in xfs_sbversion_add_attr2()
477 !(xfs_sb_version_hasattr2(&mp->m_sb))) { in xfs_sbversion_add_attr2()
478 spin_lock(&mp->m_sb_lock); in xfs_sbversion_add_attr2()
479 if (!xfs_sb_version_hasattr2(&mp->m_sb)) { in xfs_sbversion_add_attr2()
480 xfs_sb_version_addattr2(&mp->m_sb); in xfs_sbversion_add_attr2()
481 spin_unlock(&mp->m_sb_lock); in xfs_sbversion_add_attr2()
484 spin_unlock(&mp->m_sb_lock); in xfs_sbversion_add_attr2()
529 xfs_mount_t *mp; in xfs_attr_shortform_add() local
536 mp = dp->i_mount; in xfs_attr_shortform_add()
570 xfs_sbversion_add_attr2(mp, args->trans); in xfs_attr_shortform_add()
601 xfs_mount_t *mp; in xfs_attr_shortform_remove() local
607 mp = dp->i_mount; in xfs_attr_shortform_remove()
641 (mp->m_flags & XFS_MOUNT_ATTR2) && in xfs_attr_shortform_remove()
651 !(mp->m_flags & XFS_MOUNT_ATTR2) || in xfs_attr_shortform_remove()
657 xfs_sbversion_add_attr2(mp, args->trans); in xfs_attr_shortform_remove()
836 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr_shortform_allfit() local
839 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
963 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_leaf_to_node() local
986 if (xfs_sb_version_hascrc(&mp->m_sb)) { in xfs_attr3_leaf_to_node()
1034 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_leaf_create() local
1052 if (xfs_sb_version_hascrc(&mp->m_sb)) { in xfs_attr3_leaf_create()
1059 uuid_copy(&hdr3->uuid, &mp->m_sb.sb_uuid); in xfs_attr3_leaf_create()
1227 struct xfs_mount *mp; in xfs_attr3_leaf_add_work() local
1253 mp = args->trans->t_mountp; in xfs_attr3_leaf_add_work()
1305 args->rmtblkcnt = xfs_attr3_rmt_blocks(mp, args->valuelen); in xfs_attr3_leaf_add_work()
1424 struct xfs_mount *mp = leaf1_bp->b_target->bt_mount; in xfs_attr_leaf_order() local
1426 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr1, leaf1_bp->b_addr); in xfs_attr_leaf_order()
1427 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr2, leaf2_bp->b_addr); in xfs_attr_leaf_order()
2471 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr_leaf_lasthash() local
2473 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, bp->b_addr); in xfs_attr_leaf_lasthash()