Lines Matching +full:11 +full:mp

56 	xfs_bulkstat_to_bstat(breq->mp, &bs1, bstat);  in xfs_fsbulkstat_one_fmt()
81 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_fsbulkstat() local
84 .mp = mp, in xfs_ioc_fsbulkstat()
97 if (xfs_is_shutdown(mp)) in xfs_ioc_fsbulkstat()
173 struct xfs_mount *mp, in xfs_bulk_ireq_setup() argument
200 breq->startino = mp->m_sb.sb_rootino; in xfs_bulk_ireq_setup()
214 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
218 breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0); in xfs_bulk_ireq_setup()
219 else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno) in xfs_bulk_ireq_setup()
225 if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno) in xfs_bulk_ireq_setup()
231 if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
264 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_bulkstat() local
267 .mp = mp, in xfs_ioc_bulkstat()
275 if (xfs_is_shutdown(mp)) in xfs_ioc_bulkstat()
281 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->bulkstat); in xfs_ioc_bulkstat()
312 struct xfs_mount *mp, in xfs_ioc_inumbers() argument
318 .mp = mp, in xfs_ioc_inumbers()
325 if (xfs_is_shutdown(mp)) in xfs_ioc_inumbers()
334 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->inumbers); in xfs_ioc_inumbers()
354 struct xfs_mount *mp, in xfs_ioc_fsgeometry() argument
361 xfs_fs_geometry(mp, &fsgeo, struct_version); in xfs_ioc_fsgeometry()
368 xfs_fsop_geom_health(mp, &fsgeo); in xfs_ioc_fsgeometry()
379 struct xfs_mount *mp, in xfs_ioc_ag_geometry() argument
393 pag = xfs_perag_get(mp, ageo.ag_number); in xfs_ioc_ag_geometry()
409 struct xfs_mount *mp, in xfs_ioc_rtgroup_geometry() argument
422 if (!xfs_has_rtgroups(mp)) in xfs_ioc_rtgroup_geometry()
425 rtg = xfs_rtgroup_get(mp, rgeo.rg_number); in xfs_ioc_rtgroup_geometry()
449 struct xfs_mount *mp = ip->i_mount; in xfs_fill_fsxattr() local
455 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr()
463 xfs_extlen_to_rtxmod(mp, ip->i_extsize) > 0) { in xfs_fill_fsxattr()
468 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr()
473 fa->fsx_cowextsize = XFS_FSB_TO_B(mp, ip->i_cowextsize); in xfs_fill_fsxattr()
518 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_xflags() local
533 (mp->m_ddev_targp->bt_daxdev == NULL || in xfs_ioctl_setattr_xflags()
534 (mp->m_rtdev_targp && in xfs_ioctl_setattr_xflags()
535 mp->m_rtdev_targp->bt_daxdev == NULL))) in xfs_ioctl_setattr_xflags()
541 if (mp->m_sb.sb_rblocks == 0 || mp->m_sb.sb_rextsize == 0 || in xfs_ioctl_setattr_xflags()
542 xfs_extlen_to_rtxmod(mp, ip->i_extsize)) in xfs_ioctl_setattr_xflags()
552 if (i_flags2 && !xfs_has_v3inodes(mp)) in xfs_ioctl_setattr_xflags()
569 XFS_STATS_INC(mp, xs_ig_attrchg); in xfs_ioctl_setattr_xflags()
578 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_prepare_dax() local
584 if (xfs_has_dax_always(mp) || xfs_has_dax_never(mp)) in xfs_ioctl_setattr_prepare_dax()
605 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_get_trans() local
609 if (xfs_is_readonly(mp)) in xfs_ioctl_setattr_get_trans()
612 if (xfs_is_shutdown(mp)) in xfs_ioctl_setattr_get_trans()
620 if (xfs_has_wsync(mp)) in xfs_ioctl_setattr_get_trans()
638 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_extsize() local
646 XFS_FSB_TO_B(mp, ip->i_extsize) != fa->fsx_extsize) in xfs_ioctl_setattr_check_extsize()
649 if (fa->fsx_extsize & mp->m_blockmask) in xfs_ioctl_setattr_check_extsize()
664 rtextsize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_ioctl_setattr_check_extsize()
670 XFS_B_TO_FSB(mp, fa->fsx_extsize), in xfs_ioctl_setattr_check_extsize()
680 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_cowextsize() local
688 if (fa->fsx_cowextsize & mp->m_blockmask) in xfs_ioctl_setattr_check_cowextsize()
695 XFS_B_TO_FSB(mp, fa->fsx_cowextsize), in xfs_ioctl_setattr_check_cowextsize()
722 struct xfs_mount *mp = ip->i_mount; in xfs_fileattr_set() local
752 if (fa->fsx_valid && XFS_IS_QUOTA_ON(mp)) { in xfs_fileattr_set()
796 if (XFS_IS_PQUOTA_ON(mp)) { in xfs_fileattr_set()
809 ip->i_extsize = XFS_B_TO_FSB(mp, fa->fsx_extsize); in xfs_fileattr_set()
813 if (xfs_has_v3inodes(mp)) { in xfs_fileattr_set()
815 ip->i_cowextsize = XFS_B_TO_FSB(mp, fa->fsx_cowextsize); in xfs_fileattr_set()
974 struct xfs_mount *mp, in xfs_ioc_getlabel() argument
977 struct xfs_sb *sbp = &mp->m_sb; in xfs_ioc_getlabel()
985 spin_lock(&mp->m_sb_lock); in xfs_ioc_getlabel()
987 spin_unlock(&mp->m_sb_lock); in xfs_ioc_getlabel()
997 struct xfs_mount *mp, in xfs_ioc_setlabel() argument
1000 struct xfs_sb *sbp = &mp->m_sb; in xfs_ioc_setlabel()
1023 spin_lock(&mp->m_sb_lock); in xfs_ioc_setlabel()
1026 spin_unlock(&mp->m_sb_lock); in xfs_ioc_setlabel()
1037 error = xfs_sync_sb_buf(mp, true); in xfs_ioc_setlabel()
1043 mutex_lock(&mp->m_growlock); in xfs_ioc_setlabel()
1044 error = xfs_update_secondary_sbs(mp); in xfs_ioc_setlabel()
1045 mutex_unlock(&mp->m_growlock); in xfs_ioc_setlabel()
1047 invalidate_bdev(mp->m_ddev_targp->bt_bdev); in xfs_ioc_setlabel()
1048 if (xfs_has_rtsb(mp) && mp->m_rtdev_targp) in xfs_ioc_setlabel()
1049 invalidate_bdev(mp->m_rtdev_targp->bt_bdev); in xfs_ioc_setlabel()
1108 struct xfs_mount *mp = XFS_I(file_inode(filp))->i_mount; in xfs_ioctl_getset_resblocks() local
1116 if (xfs_is_readonly(mp)) in xfs_ioctl_getset_resblocks()
1125 error = xfs_reserve_blocks(mp, fsop.resblks); in xfs_ioctl_getset_resblocks()
1131 spin_lock(&mp->m_sb_lock); in xfs_ioctl_getset_resblocks()
1132 fsop.resblks = mp->m_resblks; in xfs_ioctl_getset_resblocks()
1133 fsop.resblks_avail = mp->m_resblks_avail; in xfs_ioctl_getset_resblocks()
1134 spin_unlock(&mp->m_sb_lock); in xfs_ioctl_getset_resblocks()
1143 struct xfs_mount *mp, in xfs_ioctl_fs_counts() argument
1147 .allocino = percpu_counter_read_positive(&mp->m_icount), in xfs_ioctl_fs_counts()
1148 .freeino = percpu_counter_read_positive(&mp->m_ifree), in xfs_ioctl_fs_counts()
1149 .freedata = percpu_counter_read_positive(&mp->m_fdblocks) - in xfs_ioctl_fs_counts()
1150 xfs_fdblocks_unavailable(mp), in xfs_ioctl_fs_counts()
1151 .freertx = percpu_counter_read_positive(&mp->m_frextents), in xfs_ioctl_fs_counts()
1164 #define XFS_IOC_FREESP _IOW ('X', 11, struct xfs_flock64)
1182 struct xfs_mount *mp = ip->i_mount; in xfs_file_ioctl() local
1190 return xfs_ioc_trim(mp, arg); in xfs_file_ioctl()
1192 return xfs_ioc_getlabel(mp, arg); in xfs_file_ioctl()
1194 return xfs_ioc_setlabel(filp, mp, arg); in xfs_file_ioctl()
1199 xfs_warn_once(mp, in xfs_file_ioctl()
1223 return xfs_ioc_inumbers(mp, cmd, arg); in xfs_file_ioctl()
1226 return xfs_ioc_fsgeometry(mp, arg, 3); in xfs_file_ioctl()
1228 return xfs_ioc_fsgeometry(mp, arg, 4); in xfs_file_ioctl()
1230 return xfs_ioc_fsgeometry(mp, arg, 5); in xfs_file_ioctl()
1233 return xfs_ioc_ag_geometry(mp, arg); in xfs_file_ioctl()
1235 return xfs_ioc_rtgroup_geometry(mp, arg); in xfs_file_ioctl()
1303 return xfs_ioctl_fs_counts(mp, arg); in xfs_file_ioctl()
1318 error = xfs_growfs_data(mp, &in); in xfs_file_ioctl()
1332 error = xfs_growfs_log(mp, &in); in xfs_file_ioctl()
1346 error = xfs_growfs_rt(mp, &in); in xfs_file_ioctl()
1360 return xfs_fs_goingdown(mp, in); in xfs_file_ioctl()
1372 return xfs_errortag_add(mp, in.errtag); in xfs_file_ioctl()
1379 return xfs_errortag_clearall(mp); in xfs_file_ioctl()
1388 if (xfs_is_readonly(mp)) in xfs_file_ioctl()
1398 trace_xfs_ioc_free_eofblocks(mp, &icw, _RET_IP_); in xfs_file_ioctl()
1400 sb_start_write(mp->m_super); in xfs_file_ioctl()
1401 error = xfs_blockgc_free_space(mp, &icw); in xfs_file_ioctl()
1402 sb_end_write(mp->m_super); in xfs_file_ioctl()