Lines Matching full:mp
190 struct xfs_mount *mp, in xfs_validate_sb_read() argument
201 xfs_warn(mp, in xfs_validate_sb_read()
204 xfs_warn(mp, in xfs_validate_sb_read()
209 xfs_alert(mp, in xfs_validate_sb_read()
213 if (!xfs_is_readonly(mp)) { in xfs_validate_sb_read()
214 xfs_warn(mp, in xfs_validate_sb_read()
216 xfs_warn(mp, in xfs_validate_sb_read()
223 xfs_warn(mp, in xfs_validate_sb_read()
227 xfs_warn(mp, in xfs_validate_sb_read()
270 struct xfs_mount *mp, in xfs_validate_sb_write() argument
286 !xfs_verify_icount(mp, sbp->sb_icount) || in xfs_validate_sb_write()
288 xfs_warn(mp, "SB summary counter sanity check failed"); in xfs_validate_sb_write()
301 xfs_warn(mp, in xfs_validate_sb_write()
307 if (!xfs_is_readonly(mp) && in xfs_validate_sb_write()
309 xfs_alert(mp, in xfs_validate_sb_write()
316 xfs_warn(mp, in xfs_validate_sb_write()
324 xfs_warn(mp, in xfs_validate_sb_write()
336 if (!xfs_log_check_lsn(mp, sbp->sb_lsn)) in xfs_validate_sb_write()
345 struct xfs_mount *mp, in xfs_validate_sb_common() argument
355 xfs_warn(mp, in xfs_validate_sb_common()
362 xfs_warn(mp, in xfs_validate_sb_common()
372 xfs_notice(mp, in xfs_validate_sb_common()
380 xfs_notice(mp, in xfs_validate_sb_common()
396 xfs_warn(mp, in xfs_validate_sb_common()
404 xfs_notice(mp, in xfs_validate_sb_common()
410 sbp->sb_logstart == 0 && mp->m_logdev_targp == mp->m_ddev_targp)) { in xfs_validate_sb_common()
411 xfs_warn(mp, in xfs_validate_sb_common()
418 sbp->sb_logstart != 0 && mp->m_logdev_targp != mp->m_ddev_targp)) { in xfs_validate_sb_common()
419 xfs_warn(mp, in xfs_validate_sb_common()
455 XFS_FSB_TO_B(mp, sbp->sb_agblocks) < XFS_MIN_AG_BYTES || in xfs_validate_sb_common()
456 XFS_FSB_TO_B(mp, sbp->sb_agblocks) > XFS_MAX_AG_BYTES || in xfs_validate_sb_common()
467 xfs_notice(mp, "SB sanity check failed"); in xfs_validate_sb_common()
478 xfs_notice(mp, in xfs_validate_sb_common()
484 if (XFS_FSB_TO_B(mp, sbp->sb_logblocks) > XFS_MAX_LOG_BYTES) { in xfs_validate_sb_common()
485 xfs_warn(mp, in xfs_validate_sb_common()
487 XFS_FSB_TO_B(mp, sbp->sb_logblocks), in xfs_validate_sb_common()
499 xfs_notice(mp, in xfs_validate_sb_common()
505 xfs_notice(mp, in xfs_validate_sb_common()
513 xfs_notice(mp, in xfs_validate_sb_common()
519 xfs_notice(mp, in xfs_validate_sb_common()
527 xfs_notice(mp, in xfs_validate_sb_common()
539 xfs_notice(mp, "SB stripe alignment sanity check failed"); in xfs_validate_sb_common()
543 if (!xfs_validate_stripe_geometry(mp, XFS_FSB_TO_B(mp, sbp->sb_unit), in xfs_validate_sb_common()
544 XFS_FSB_TO_B(mp, sbp->sb_width), 0, in xfs_validate_sb_common()
558 xfs_warn(mp, "inode size of %d bytes not supported", in xfs_validate_sb_common()
858 struct xfs_mount *mp = bp->b_mount; in xfs_sb_read_verify() local
874 xfs_has_crc(mp)) { in xfs_sb_read_verify()
886 error = xfs_validate_sb_common(mp, bp, &sb); in xfs_sb_read_verify()
889 error = xfs_validate_sb_read(mp, &sb); in xfs_sb_read_verify()
924 struct xfs_mount *mp = bp->b_mount; in xfs_sb_write_verify() local
934 error = xfs_validate_sb_common(mp, bp, &sb); in xfs_sb_write_verify()
937 error = xfs_validate_sb_write(mp, bp, &sb); in xfs_sb_write_verify()
970 struct xfs_mount *mp, in xfs_mount_sb_set_rextsize() argument
973 mp->m_rtxblklog = log2_if_power2(sbp->sb_rextsize); in xfs_mount_sb_set_rextsize()
974 mp->m_rtxblkmask = mask64_if_power2(sbp->sb_rextsize); in xfs_mount_sb_set_rextsize()
988 struct xfs_mount *mp, in xfs_sb_mount_common() argument
991 mp->m_agfrotor = 0; in xfs_sb_mount_common()
992 atomic_set(&mp->m_agirotor, 0); in xfs_sb_mount_common()
993 mp->m_maxagi = mp->m_sb.sb_agcount; in xfs_sb_mount_common()
994 mp->m_blkbit_log = sbp->sb_blocklog + XFS_NBBYLOG; in xfs_sb_mount_common()
995 mp->m_blkbb_log = sbp->sb_blocklog - BBSHIFT; in xfs_sb_mount_common()
996 mp->m_sectbb_log = sbp->sb_sectlog - BBSHIFT; in xfs_sb_mount_common()
997 mp->m_agno_log = xfs_highbit32(sbp->sb_agcount - 1) + 1; in xfs_sb_mount_common()
998 mp->m_blockmask = sbp->sb_blocksize - 1; in xfs_sb_mount_common()
999 mp->m_blockwsize = sbp->sb_blocksize >> XFS_WORDLOG; in xfs_sb_mount_common()
1000 mp->m_blockwmask = mp->m_blockwsize - 1; in xfs_sb_mount_common()
1001 xfs_mount_sb_set_rextsize(mp, sbp); in xfs_sb_mount_common()
1003 mp->m_alloc_mxr[0] = xfs_allocbt_maxrecs(mp, sbp->sb_blocksize, true); in xfs_sb_mount_common()
1004 mp->m_alloc_mxr[1] = xfs_allocbt_maxrecs(mp, sbp->sb_blocksize, false); in xfs_sb_mount_common()
1005 mp->m_alloc_mnr[0] = mp->m_alloc_mxr[0] / 2; in xfs_sb_mount_common()
1006 mp->m_alloc_mnr[1] = mp->m_alloc_mxr[1] / 2; in xfs_sb_mount_common()
1008 mp->m_bmap_dmxr[0] = xfs_bmbt_maxrecs(mp, sbp->sb_blocksize, true); in xfs_sb_mount_common()
1009 mp->m_bmap_dmxr[1] = xfs_bmbt_maxrecs(mp, sbp->sb_blocksize, false); in xfs_sb_mount_common()
1010 mp->m_bmap_dmnr[0] = mp->m_bmap_dmxr[0] / 2; in xfs_sb_mount_common()
1011 mp->m_bmap_dmnr[1] = mp->m_bmap_dmxr[1] / 2; in xfs_sb_mount_common()
1013 mp->m_rmap_mxr[0] = xfs_rmapbt_maxrecs(mp, sbp->sb_blocksize, true); in xfs_sb_mount_common()
1014 mp->m_rmap_mxr[1] = xfs_rmapbt_maxrecs(mp, sbp->sb_blocksize, false); in xfs_sb_mount_common()
1015 mp->m_rmap_mnr[0] = mp->m_rmap_mxr[0] / 2; in xfs_sb_mount_common()
1016 mp->m_rmap_mnr[1] = mp->m_rmap_mxr[1] / 2; in xfs_sb_mount_common()
1018 mp->m_refc_mxr[0] = xfs_refcountbt_maxrecs(mp, sbp->sb_blocksize, true); in xfs_sb_mount_common()
1019 mp->m_refc_mxr[1] = xfs_refcountbt_maxrecs(mp, sbp->sb_blocksize, false); in xfs_sb_mount_common()
1020 mp->m_refc_mnr[0] = mp->m_refc_mxr[0] / 2; in xfs_sb_mount_common()
1021 mp->m_refc_mnr[1] = mp->m_refc_mxr[1] / 2; in xfs_sb_mount_common()
1023 mp->m_bsize = XFS_FSB_TO_BB(mp, 1); in xfs_sb_mount_common()
1024 mp->m_alloc_set_aside = xfs_alloc_set_aside(mp); in xfs_sb_mount_common()
1025 mp->m_ag_max_usable = xfs_alloc_ag_max_usable(mp); in xfs_sb_mount_common()
1038 struct xfs_mount *mp = tp->t_mountp; in xfs_log_sb() local
1054 if (xfs_has_lazysbcount(mp)) { in xfs_log_sb()
1055 mp->m_sb.sb_icount = percpu_counter_sum_positive(&mp->m_icount); in xfs_log_sb()
1056 mp->m_sb.sb_ifree = min_t(uint64_t, in xfs_log_sb()
1057 percpu_counter_sum_positive(&mp->m_ifree), in xfs_log_sb()
1058 mp->m_sb.sb_icount); in xfs_log_sb()
1059 mp->m_sb.sb_fdblocks = in xfs_log_sb()
1060 percpu_counter_sum_positive(&mp->m_fdblocks); in xfs_log_sb()
1063 xfs_sb_to_disk(bp->b_addr, &mp->m_sb); in xfs_log_sb()
1081 struct xfs_mount *mp, in xfs_sync_sb() argument
1087 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_sb, 0, 0, in xfs_sync_sb()
1110 struct xfs_mount *mp) in xfs_update_secondary_sbs() argument
1119 for_each_perag_from(mp, agno, pag) { in xfs_update_secondary_sbs()
1122 error = xfs_buf_get(mp->m_ddev_targp, in xfs_update_secondary_sbs()
1123 XFS_AG_DADDR(mp, pag->pag_agno, XFS_SB_DADDR), in xfs_update_secondary_sbs()
1124 XFS_FSS_TO_BB(mp, 1), &bp); in xfs_update_secondary_sbs()
1133 xfs_warn(mp, in xfs_update_secondary_sbs()
1144 xfs_sb_to_disk(bp->b_addr, &mp->m_sb); in xfs_update_secondary_sbs()
1154 xfs_warn(mp, in xfs_update_secondary_sbs()
1164 xfs_warn(mp, in xfs_update_secondary_sbs()
1178 struct xfs_mount *mp) in xfs_sync_sb_buf() argument
1184 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_sb, 0, 0, 0, &tp); in xfs_sync_sb_buf()
1206 struct xfs_mount *mp, in xfs_fs_geometry() argument
1210 struct xfs_sb *sbp = &mp->m_sb; in xfs_fs_geometry()
1242 if (xfs_has_attr(mp)) in xfs_fs_geometry()
1244 if (xfs_has_quota(mp)) in xfs_fs_geometry()
1246 if (xfs_has_align(mp)) in xfs_fs_geometry()
1248 if (xfs_has_dalign(mp)) in xfs_fs_geometry()
1250 if (xfs_has_asciici(mp)) in xfs_fs_geometry()
1252 if (xfs_has_lazysbcount(mp)) in xfs_fs_geometry()
1254 if (xfs_has_attr2(mp)) in xfs_fs_geometry()
1256 if (xfs_has_projid32(mp)) in xfs_fs_geometry()
1258 if (xfs_has_crc(mp)) in xfs_fs_geometry()
1260 if (xfs_has_ftype(mp)) in xfs_fs_geometry()
1262 if (xfs_has_finobt(mp)) in xfs_fs_geometry()
1264 if (xfs_has_sparseinodes(mp)) in xfs_fs_geometry()
1266 if (xfs_has_rmapbt(mp)) in xfs_fs_geometry()
1268 if (xfs_has_reflink(mp)) in xfs_fs_geometry()
1270 if (xfs_has_bigtime(mp)) in xfs_fs_geometry()
1272 if (xfs_has_inobtcounts(mp)) in xfs_fs_geometry()
1274 if (xfs_has_parent(mp)) in xfs_fs_geometry()
1276 if (xfs_has_sector(mp)) { in xfs_fs_geometry()
1282 if (xfs_has_large_extent_counts(mp)) in xfs_fs_geometry()
1284 if (xfs_has_exchange_range(mp)) in xfs_fs_geometry()
1292 if (xfs_has_logv2(mp)) in xfs_fs_geometry()
1306 struct xfs_mount *mp, in xfs_sb_read_secondary() argument
1315 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_sb_read_secondary()
1316 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_read_secondary()
1317 XFS_FSS_TO_BB(mp, 1), 0, &bp, &xfs_sb_buf_ops); in xfs_sb_read_secondary()
1319 xfs_agno_mark_sick(mp, agno, XFS_SICK_AG_SB); in xfs_sb_read_secondary()
1330 struct xfs_mount *mp, in xfs_sb_get_secondary() argument
1339 error = xfs_trans_get_buf(tp, mp->m_ddev_targp, in xfs_sb_get_secondary()
1340 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_get_secondary()
1341 XFS_FSS_TO_BB(mp, 1), 0, &bp); in xfs_sb_get_secondary()
1358 struct xfs_mount *mp, in xfs_validate_stripe_geometry() argument
1367 xfs_notice(mp, in xfs_validate_stripe_geometry()
1374 xfs_notice(mp, in xfs_validate_stripe_geometry()
1381 xfs_notice(mp, in xfs_validate_stripe_geometry()
1389 xfs_notice(mp, in xfs_validate_stripe_geometry()
1396 xfs_notice(mp, in xfs_validate_stripe_geometry()
1403 xfs_notice(mp, in xfs_validate_stripe_geometry()
1414 * During mount, mp->m_dalign will not be set unless the sunit mount in xfs_validate_stripe_geometry()
1420 if (!mp->m_dalign) in xfs_validate_stripe_geometry()
1423 xfs_notice(mp, in xfs_validate_stripe_geometry()
1425 BBTOB(mp->m_dalign), BBTOB(mp->m_swidth)); in xfs_validate_stripe_geometry()