Lines Matching +full:11 +full:mp

55 	xfs_bulkstat_to_bstat(breq->mp, &bs1, bstat);  in xfs_fsbulkstat_one_fmt()
80 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_fsbulkstat() local
83 .mp = mp, in xfs_ioc_fsbulkstat()
96 if (xfs_is_shutdown(mp)) in xfs_ioc_fsbulkstat()
172 struct xfs_mount *mp, in xfs_bulk_ireq_setup() argument
199 breq->startino = mp->m_sb.sb_rootino; in xfs_bulk_ireq_setup()
213 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
217 breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0); in xfs_bulk_ireq_setup()
218 else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno) in xfs_bulk_ireq_setup()
224 if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno) in xfs_bulk_ireq_setup()
230 if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
259 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_bulkstat() local
262 .mp = mp, in xfs_ioc_bulkstat()
270 if (xfs_is_shutdown(mp)) in xfs_ioc_bulkstat()
276 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->bulkstat); in xfs_ioc_bulkstat()
307 struct xfs_mount *mp, in xfs_ioc_inumbers() argument
313 .mp = mp, in xfs_ioc_inumbers()
320 if (xfs_is_shutdown(mp)) in xfs_ioc_inumbers()
326 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->inumbers); in xfs_ioc_inumbers()
346 struct xfs_mount *mp, in xfs_ioc_fsgeometry() argument
353 xfs_fs_geometry(mp, &fsgeo, struct_version); in xfs_ioc_fsgeometry()
360 xfs_fsop_geom_health(mp, &fsgeo); in xfs_ioc_fsgeometry()
371 struct xfs_mount *mp, in xfs_ioc_ag_geometry() argument
385 pag = xfs_perag_get(mp, ageo.ag_number); in xfs_ioc_ag_geometry()
409 struct xfs_mount *mp = ip->i_mount; in xfs_fill_fsxattr() local
415 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr()
423 xfs_extlen_to_rtxmod(mp, ip->i_extsize) > 0) { in xfs_fill_fsxattr()
428 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr()
433 fa->fsx_cowextsize = XFS_FSB_TO_B(mp, ip->i_cowextsize); in xfs_fill_fsxattr()
478 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_xflags() local
493 (mp->m_ddev_targp->bt_daxdev == NULL || in xfs_ioctl_setattr_xflags()
494 (mp->m_rtdev_targp && in xfs_ioctl_setattr_xflags()
495 mp->m_rtdev_targp->bt_daxdev == NULL))) in xfs_ioctl_setattr_xflags()
501 if (mp->m_sb.sb_rblocks == 0 || mp->m_sb.sb_rextsize == 0 || in xfs_ioctl_setattr_xflags()
502 xfs_extlen_to_rtxmod(mp, ip->i_extsize)) in xfs_ioctl_setattr_xflags()
512 if (i_flags2 && !xfs_has_v3inodes(mp)) in xfs_ioctl_setattr_xflags()
529 XFS_STATS_INC(mp, xs_ig_attrchg); in xfs_ioctl_setattr_xflags()
538 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_prepare_dax() local
544 if (xfs_has_dax_always(mp) || xfs_has_dax_never(mp)) in xfs_ioctl_setattr_prepare_dax()
565 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_get_trans() local
569 if (xfs_is_readonly(mp)) in xfs_ioctl_setattr_get_trans()
572 if (xfs_is_shutdown(mp)) in xfs_ioctl_setattr_get_trans()
580 if (xfs_has_wsync(mp)) in xfs_ioctl_setattr_get_trans()
598 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_extsize() local
606 XFS_FSB_TO_B(mp, ip->i_extsize) != fa->fsx_extsize) in xfs_ioctl_setattr_check_extsize()
609 if (fa->fsx_extsize & mp->m_blockmask) in xfs_ioctl_setattr_check_extsize()
624 rtextsize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_ioctl_setattr_check_extsize()
630 XFS_B_TO_FSB(mp, fa->fsx_extsize), in xfs_ioctl_setattr_check_extsize()
640 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_cowextsize() local
648 if (fa->fsx_cowextsize & mp->m_blockmask) in xfs_ioctl_setattr_check_cowextsize()
655 XFS_B_TO_FSB(mp, fa->fsx_cowextsize), in xfs_ioctl_setattr_check_cowextsize()
682 struct xfs_mount *mp = ip->i_mount; in xfs_fileattr_set() local
712 if (fa->fsx_valid && XFS_IS_QUOTA_ON(mp)) { in xfs_fileattr_set()
756 if (XFS_IS_PQUOTA_ON(mp)) { in xfs_fileattr_set()
769 ip->i_extsize = XFS_B_TO_FSB(mp, fa->fsx_extsize); in xfs_fileattr_set()
773 if (xfs_has_v3inodes(mp)) { in xfs_fileattr_set()
775 ip->i_cowextsize = XFS_B_TO_FSB(mp, fa->fsx_cowextsize); in xfs_fileattr_set()
961 struct xfs_mount *mp, in xfs_ioc_getlabel() argument
964 struct xfs_sb *sbp = &mp->m_sb; in xfs_ioc_getlabel()
972 spin_lock(&mp->m_sb_lock); in xfs_ioc_getlabel()
974 spin_unlock(&mp->m_sb_lock); in xfs_ioc_getlabel()
984 struct xfs_mount *mp, in xfs_ioc_setlabel() argument
987 struct xfs_sb *sbp = &mp->m_sb; in xfs_ioc_setlabel()
1010 spin_lock(&mp->m_sb_lock); in xfs_ioc_setlabel()
1013 spin_unlock(&mp->m_sb_lock); in xfs_ioc_setlabel()
1024 error = xfs_sync_sb_buf(mp); in xfs_ioc_setlabel()
1030 mutex_lock(&mp->m_growlock); in xfs_ioc_setlabel()
1031 error = xfs_update_secondary_sbs(mp); in xfs_ioc_setlabel()
1032 mutex_unlock(&mp->m_growlock); in xfs_ioc_setlabel()
1034 invalidate_bdev(mp->m_ddev_targp->bt_bdev); in xfs_ioc_setlabel()
1093 struct xfs_mount *mp = XFS_I(file_inode(filp))->i_mount; in xfs_ioctl_getset_resblocks() local
1101 if (xfs_is_readonly(mp)) in xfs_ioctl_getset_resblocks()
1110 error = xfs_reserve_blocks(mp, fsop.resblks); in xfs_ioctl_getset_resblocks()
1116 spin_lock(&mp->m_sb_lock); in xfs_ioctl_getset_resblocks()
1117 fsop.resblks = mp->m_resblks; in xfs_ioctl_getset_resblocks()
1118 fsop.resblks_avail = mp->m_resblks_avail; in xfs_ioctl_getset_resblocks()
1119 spin_unlock(&mp->m_sb_lock); in xfs_ioctl_getset_resblocks()
1128 struct xfs_mount *mp, in xfs_ioctl_fs_counts() argument
1132 .allocino = percpu_counter_read_positive(&mp->m_icount), in xfs_ioctl_fs_counts()
1133 .freeino = percpu_counter_read_positive(&mp->m_ifree), in xfs_ioctl_fs_counts()
1134 .freedata = percpu_counter_read_positive(&mp->m_fdblocks) - in xfs_ioctl_fs_counts()
1135 xfs_fdblocks_unavailable(mp), in xfs_ioctl_fs_counts()
1136 .freertx = percpu_counter_read_positive(&mp->m_frextents), in xfs_ioctl_fs_counts()
1149 #define XFS_IOC_FREESP _IOW ('X', 11, struct xfs_flock64)
1167 struct xfs_mount *mp = ip->i_mount; in xfs_file_ioctl() local
1175 return xfs_ioc_trim(mp, arg); in xfs_file_ioctl()
1177 return xfs_ioc_getlabel(mp, arg); in xfs_file_ioctl()
1179 return xfs_ioc_setlabel(filp, mp, arg); in xfs_file_ioctl()
1184 xfs_warn_once(mp, in xfs_file_ioctl()
1208 return xfs_ioc_inumbers(mp, cmd, arg); in xfs_file_ioctl()
1211 return xfs_ioc_fsgeometry(mp, arg, 3); in xfs_file_ioctl()
1213 return xfs_ioc_fsgeometry(mp, arg, 4); in xfs_file_ioctl()
1215 return xfs_ioc_fsgeometry(mp, arg, 5); in xfs_file_ioctl()
1218 return xfs_ioc_ag_geometry(mp, arg); in xfs_file_ioctl()
1286 return xfs_ioctl_fs_counts(mp, arg); in xfs_file_ioctl()
1301 error = xfs_growfs_data(mp, &in); in xfs_file_ioctl()
1315 error = xfs_growfs_log(mp, &in); in xfs_file_ioctl()
1329 error = xfs_growfs_rt(mp, &in); in xfs_file_ioctl()
1343 return xfs_fs_goingdown(mp, in); in xfs_file_ioctl()
1355 return xfs_errortag_add(mp, in.errtag); in xfs_file_ioctl()
1362 return xfs_errortag_clearall(mp); in xfs_file_ioctl()
1371 if (xfs_is_readonly(mp)) in xfs_file_ioctl()
1381 trace_xfs_ioc_free_eofblocks(mp, &icw, _RET_IP_); in xfs_file_ioctl()
1383 sb_start_write(mp->m_super); in xfs_file_ioctl()
1384 error = xfs_blockgc_free_space(mp, &icw); in xfs_file_ioctl()
1385 sb_end_write(mp->m_super); in xfs_file_ioctl()