m_sb 49 fs/xfs/libxfs/xfs_ag.c return mp->m_sb.sb_logstart > 0 && m_sb 50 fs/xfs/libxfs/xfs_ag.c id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); m_sb 81 fs/xfs/libxfs/xfs_ag.c mp->m_sb.sb_logstart); m_sb 105 fs/xfs/libxfs/xfs_ag.c be32_add_cpu(&arec->ar_startblock, mp->m_sb.sb_logblocks); m_sb 195 fs/xfs/libxfs/xfs_ag.c if (xfs_sb_version_hasreflink(&mp->m_sb)) { m_sb 209 fs/xfs/libxfs/xfs_ag.c XFS_FSB_TO_AGBNO(mp, mp->m_sb.sb_logstart)); m_sb 210 fs/xfs/libxfs/xfs_ag.c rrec->rm_blockcount = cpu_to_be32(mp->m_sb.sb_logblocks); m_sb 233 fs/xfs/libxfs/xfs_ag.c xfs_sb_to_disk(dsb, &mp->m_sb); m_sb 254 fs/xfs/libxfs/xfs_ag.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) { m_sb 267 fs/xfs/libxfs/xfs_ag.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 268 fs/xfs/libxfs/xfs_ag.c uuid_copy(&agf->agf_uuid, &mp->m_sb.sb_meta_uuid); m_sb 269 fs/xfs/libxfs/xfs_ag.c if (xfs_sb_version_hasreflink(&mp->m_sb)) { m_sb 277 fs/xfs/libxfs/xfs_ag.c int64_t logblocks = mp->m_sb.sb_logblocks; m_sb 281 fs/xfs/libxfs/xfs_ag.c XFS_FSB_TO_AGBNO(mp, mp->m_sb.sb_logstart) - logblocks); m_sb 295 fs/xfs/libxfs/xfs_ag.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 298 fs/xfs/libxfs/xfs_ag.c uuid_copy(&agfl->agfl_uuid, &mp->m_sb.sb_meta_uuid); m_sb 325 fs/xfs/libxfs/xfs_ag.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 326 fs/xfs/libxfs/xfs_ag.c uuid_copy(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid); m_sb 327 fs/xfs/libxfs/xfs_ag.c if (xfs_sb_version_hasfinobt(&mp->m_sb)) { m_sb 414 fs/xfs/libxfs/xfs_ag.c .numblks = BTOBB(mp->m_sb.sb_blocksize), m_sb 421 fs/xfs/libxfs/xfs_ag.c .numblks = BTOBB(mp->m_sb.sb_blocksize), m_sb 428 fs/xfs/libxfs/xfs_ag.c .numblks = BTOBB(mp->m_sb.sb_blocksize), m_sb 436 fs/xfs/libxfs/xfs_ag.c .numblks = BTOBB(mp->m_sb.sb_blocksize), m_sb 440 fs/xfs/libxfs/xfs_ag.c .need_init = xfs_sb_version_hasfinobt(&mp->m_sb) m_sb 444 fs/xfs/libxfs/xfs_ag.c .numblks = BTOBB(mp->m_sb.sb_blocksize), m_sb 447 fs/xfs/libxfs/xfs_ag.c .need_init = xfs_sb_version_hasrmapbt(&mp->m_sb) m_sb 451 fs/xfs/libxfs/xfs_ag.c .numblks = BTOBB(mp->m_sb.sb_blocksize), m_sb 455 fs/xfs/libxfs/xfs_ag.c .need_init = xfs_sb_version_hasreflink(&mp->m_sb) m_sb 504 fs/xfs/libxfs/xfs_ag.c ASSERT(id->agno == mp->m_sb.sb_agcount - 1 || m_sb 505 fs/xfs/libxfs/xfs_ag.c be32_to_cpu(agi->agi_length) == mp->m_sb.sb_agblocks); m_sb 553 fs/xfs/libxfs/xfs_ag.c if (agno >= mp->m_sb.sb_agcount) m_sb 52 fs/xfs/libxfs/xfs_alloc.c unsigned int size = mp->m_sb.sb_sectsize; m_sb 54 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 64 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 66 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasfinobt(&mp->m_sb)) m_sb 75 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 77 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 79 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasfinobt(&mp->m_sb)) m_sb 103 fs/xfs/libxfs/xfs_alloc.c return mp->m_sb.sb_agcount * (XFS_ALLOC_AGFL_RESERVE + 4); m_sb 129 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasfinobt(&mp->m_sb)) m_sb 131 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 133 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 136 fs/xfs/libxfs/xfs_alloc.c return mp->m_sb.sb_agblocks - blocks; m_sb 564 fs/xfs/libxfs/xfs_alloc.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 569 fs/xfs/libxfs/xfs_alloc.c if (!uuid_equal(&agfl->agfl_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 582 fs/xfs/libxfs/xfs_alloc.c be32_to_cpu(agfl->agfl_bno[i]) >= mp->m_sb.sb_agblocks) m_sb 604 fs/xfs/libxfs/xfs_alloc.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 625 fs/xfs/libxfs/xfs_alloc.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 1123 fs/xfs/libxfs/xfs_alloc.c args->max_agbno = args->mp->m_sb.sb_agblocks - 1; m_sb 1955 fs/xfs/libxfs/xfs_alloc.c (mp->m_sb.sb_agblocks + 1) / 2); m_sb 2012 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 2120 fs/xfs/libxfs/xfs_alloc.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 2583 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 2584 fs/xfs/libxfs/xfs_alloc.c if (!uuid_equal(&agf->agf_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 2607 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasrmapbt(&mp->m_sb) && m_sb 2621 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_haslazysbcount(&mp->m_sb) && m_sb 2625 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hasreflink(&mp->m_sb) && m_sb 2641 fs/xfs/libxfs/xfs_alloc.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 2665 fs/xfs/libxfs/xfs_alloc.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 2798 fs/xfs/libxfs/xfs_alloc.c agsize = mp->m_sb.sb_agblocks; m_sb 2803 fs/xfs/libxfs/xfs_alloc.c ASSERT(XFS_FSB_TO_AGNO(mp, args->fsbno) < mp->m_sb.sb_agcount); m_sb 2808 fs/xfs/libxfs/xfs_alloc.c if (XFS_FSB_TO_AGNO(mp, args->fsbno) >= mp->m_sb.sb_agcount || m_sb 2848 fs/xfs/libxfs/xfs_alloc.c mp->m_sb.sb_agcount), 0); m_sb 2908 fs/xfs/libxfs/xfs_alloc.c if (++(args->agno) == mp->m_sb.sb_agcount) { m_sb 2937 fs/xfs/libxfs/xfs_alloc.c (mp->m_sb.sb_agcount * rotorstep); m_sb 2940 fs/xfs/libxfs/xfs_alloc.c (mp->m_sb.sb_agcount * rotorstep); m_sb 2993 fs/xfs/libxfs/xfs_alloc.c if (args.agno >= args.mp->m_sb.sb_agcount) m_sb 3041 fs/xfs/libxfs/xfs_alloc.c XFS_WANT_CORRUPTED_GOTO(mp, agbno < mp->m_sb.sb_agblocks, err); m_sb 304 fs/xfs/libxfs/xfs_alloc_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 495 fs/xfs/libxfs/xfs_alloc_btree.c cur->bc_blocklog = mp->m_sb.sb_blocklog; m_sb 511 fs/xfs/libxfs/xfs_alloc_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 21 fs/xfs/libxfs/xfs_alloc_btree.h (xfs_sb_version_hascrc(&((mp)->m_sb)) ? \ m_sb 324 fs/xfs/libxfs/xfs_attr_leaf.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 346 fs/xfs/libxfs/xfs_attr_leaf.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 550 fs/xfs/libxfs/xfs_attr_leaf.c !(xfs_sb_version_hasattr2(&mp->m_sb))) { m_sb 552 fs/xfs/libxfs/xfs_attr_leaf.c if (!xfs_sb_version_hasattr2(&mp->m_sb)) { m_sb 553 fs/xfs/libxfs/xfs_attr_leaf.c xfs_sb_version_addattr2(&mp->m_sb); m_sb 1110 fs/xfs/libxfs/xfs_attr_leaf.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 1176 fs/xfs/libxfs/xfs_attr_leaf.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 1183 fs/xfs/libxfs/xfs_attr_leaf.c uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid); m_sb 36 fs/xfs/libxfs/xfs_attr_remote.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 37 fs/xfs/libxfs/xfs_attr_remote.c int buflen = XFS_ATTR3_RMT_BUF_SPACE(mp, mp->m_sb.sb_blocksize); m_sb 81 fs/xfs/libxfs/xfs_attr_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 85 fs/xfs/libxfs/xfs_attr_remote.c if (!uuid_equal(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 113 fs/xfs/libxfs/xfs_attr_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 178 fs/xfs/libxfs/xfs_attr_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 233 fs/xfs/libxfs/xfs_attr_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 239 fs/xfs/libxfs/xfs_attr_remote.c uuid_copy(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid); m_sb 283 fs/xfs/libxfs/xfs_attr_remote.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 195 fs/xfs/libxfs/xfs_bmap.c if (mp->m_sb.sb_inodesize == 256) { m_sb 355 fs/xfs/libxfs/xfs_bmap.c ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); m_sb 356 fs/xfs/libxfs/xfs_bmap.c ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); m_sb 549 fs/xfs/libxfs/xfs_bmap.c ASSERT(agno < mp->m_sb.sb_agcount); m_sb 550 fs/xfs/libxfs/xfs_bmap.c ASSERT(agbno < mp->m_sb.sb_agblocks); m_sb 551 fs/xfs/libxfs/xfs_bmap.c ASSERT(len < mp->m_sb.sb_agblocks); m_sb 552 fs/xfs/libxfs/xfs_bmap.c ASSERT(agbno + len <= mp->m_sb.sb_agblocks); m_sb 1125 fs/xfs/libxfs/xfs_bmap.c if (!xfs_sb_version_hasattr(&mp->m_sb) || m_sb 1126 fs/xfs/libxfs/xfs_bmap.c (!xfs_sb_version_hasattr2(&mp->m_sb) && version == 2)) { m_sb 1130 fs/xfs/libxfs/xfs_bmap.c if (!xfs_sb_version_hasattr(&mp->m_sb)) { m_sb 1131 fs/xfs/libxfs/xfs_bmap.c xfs_sb_version_addattr(&mp->m_sb); m_sb 1134 fs/xfs/libxfs/xfs_bmap.c if (!xfs_sb_version_hasattr2(&mp->m_sb) && version == 2) { m_sb 1135 fs/xfs/libxfs/xfs_bmap.c xfs_sb_version_addattr2(&mp->m_sb); m_sb 1505 fs/xfs/libxfs/xfs_bmap.c return XFS_ISIZE(ip) == ip->i_mount->m_sb.sb_blocksize; m_sb 1517 fs/xfs/libxfs/xfs_bmap.c ASSERT(XFS_ISIZE(ip) == ip->i_mount->m_sb.sb_blocksize); m_sb 2986 fs/xfs/libxfs/xfs_bmap.c if (rt && (temp = (align_alen % mp->m_sb.sb_rextsize))) { m_sb 3013 fs/xfs/libxfs/xfs_bmap.c align_alen -= align_alen % mp->m_sb.sb_rextsize; m_sb 3053 fs/xfs/libxfs/xfs_bmap.c (x) < mp->m_sb.sb_rblocks : \ m_sb 3055 fs/xfs/libxfs/xfs_bmap.c XFS_FSB_TO_AGNO(mp, x) < mp->m_sb.sb_agcount && \ m_sb 3056 fs/xfs/libxfs/xfs_bmap.c XFS_FSB_TO_AGBNO(mp, x) < mp->m_sb.sb_agblocks) m_sb 3278 fs/xfs/libxfs/xfs_bmap.c if (++ag == mp->m_sb.sb_agcount) m_sb 3493 fs/xfs/libxfs/xfs_bmap.c } else if (mp->m_sb.sb_blocksize >= PAGE_SIZE) { m_sb 3497 fs/xfs/libxfs/xfs_bmap.c args.prod = PAGE_SIZE >> mp->m_sb.sb_blocklog; m_sb 4758 fs/xfs/libxfs/xfs_bmap.c do_div(rtexts, mp->m_sb.sb_rextsize); m_sb 4992 fs/xfs/libxfs/xfs_bmap.c bno = div_u64_rem(del->br_startblock, mp->m_sb.sb_rextsize, m_sb 4995 fs/xfs/libxfs/xfs_bmap.c len = div_u64_rem(del->br_blockcount, mp->m_sb.sb_rextsize, m_sb 5003 fs/xfs/libxfs/xfs_bmap.c nblks = len * mp->m_sb.sb_rextsize; m_sb 5330 fs/xfs/libxfs/xfs_bmap.c div_u64_rem(sum, mp->m_sb.sb_rextsize, &mod); m_sb 5377 fs/xfs/libxfs/xfs_bmap.c div_u64_rem(del.br_startblock, mp->m_sb.sb_rextsize, &mod); m_sb 5384 fs/xfs/libxfs/xfs_bmap.c mod = mp->m_sb.sb_rextsize - mod; m_sb 139 fs/xfs/libxfs/xfs_bmap_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 142 fs/xfs/libxfs/xfs_bmap_btree.c &mp->m_sb.sb_meta_uuid)); m_sb 431 fs/xfs/libxfs/xfs_bmap_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 561 fs/xfs/libxfs/xfs_bmap_btree.c cur->bc_blocklog = mp->m_sb.sb_blocklog; m_sb 566 fs/xfs/libxfs/xfs_bmap_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 19 fs/xfs/libxfs/xfs_bmap_btree.h (xfs_sb_version_hascrc(&((mp)->m_sb)) ? \ m_sb 65 fs/xfs/libxfs/xfs_btree.c int crc = xfs_sb_version_hascrc(&mp->m_sb); m_sb 68 fs/xfs/libxfs/xfs_btree.c if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 131 fs/xfs/libxfs/xfs_btree.c int crc = xfs_sb_version_hascrc(&mp->m_sb); m_sb 134 fs/xfs/libxfs/xfs_btree.c if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 276 fs/xfs/libxfs/xfs_btree.c if (!xfs_sb_version_hascrc(&bp->b_mount->m_sb)) m_sb 290 fs/xfs/libxfs/xfs_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 314 fs/xfs/libxfs/xfs_btree.c if (!xfs_sb_version_hascrc(&bp->b_mount->m_sb)) m_sb 328 fs/xfs/libxfs/xfs_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 1143 fs/xfs/libxfs/xfs_btree.c int crc = xfs_sb_version_hascrc(&mp->m_sb); m_sb 1156 fs/xfs/libxfs/xfs_btree.c uuid_copy(&buf->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid); m_sb 1169 fs/xfs/libxfs/xfs_btree.c uuid_copy(&buf->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid); m_sb 1803 fs/xfs/libxfs/xfs_btree.c if (xfs_sb_version_hascrc(&cur->bc_mp->m_sb) && m_sb 4428 fs/xfs/libxfs/xfs_btree.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 4430 fs/xfs/libxfs/xfs_btree.c if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 4478 fs/xfs/libxfs/xfs_btree.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 4480 fs/xfs/libxfs/xfs_btree.c if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 129 fs/xfs/libxfs/xfs_da_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 130 fs/xfs/libxfs/xfs_da_btree.c if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) m_sb 194 fs/xfs/libxfs/xfs_da_btree.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 353 fs/xfs/libxfs/xfs_da_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 360 fs/xfs/libxfs/xfs_da_btree.c uuid_copy(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid); m_sb 869 fs/xfs/libxfs/xfs_da_format.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 871 fs/xfs/libxfs/xfs_da_format.c if (xfs_sb_version_hasftype(&mp->m_sb)) m_sb 885 fs/xfs/libxfs/xfs_da_format.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 863 fs/xfs/libxfs/xfs_da_format.h ((bufsize) - (xfs_sb_version_hascrc(&(mp)->m_sb) ? \ m_sb 105 fs/xfs/libxfs/xfs_dir2.c ASSERT(mp->m_sb.sb_versionnum & XFS_SB_VERSION_DIRV2BIT); m_sb 106 fs/xfs/libxfs/xfs_dir2.c ASSERT(xfs_dir2_dirblock_bytes(&mp->m_sb) <= XFS_MAX_BLOCKSIZE); m_sb 124 fs/xfs/libxfs/xfs_dir2.c dageo->blklog = mp->m_sb.sb_blocklog + mp->m_sb.sb_dirblklog; m_sb 125 fs/xfs/libxfs/xfs_dir2.c dageo->fsblog = mp->m_sb.sb_blocklog; m_sb 126 fs/xfs/libxfs/xfs_dir2.c dageo->blksize = xfs_dir2_dirblock_bytes(&mp->m_sb); m_sb 127 fs/xfs/libxfs/xfs_dir2.c dageo->fsbcount = 1 << mp->m_sb.sb_dirblklog; m_sb 142 fs/xfs/libxfs/xfs_dir2.c dageo->blklog = mp->m_sb.sb_blocklog; m_sb 143 fs/xfs/libxfs/xfs_dir2.c dageo->fsblog = mp->m_sb.sb_blocklog; m_sb 150 fs/xfs/libxfs/xfs_dir2.c if (xfs_sb_version_hasasciici(&mp->m_sb)) m_sb 56 fs/xfs/libxfs/xfs_dir2_block.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 57 fs/xfs/libxfs/xfs_dir2_block.c if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) m_sb 74 fs/xfs/libxfs/xfs_dir2_block.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 99 fs/xfs/libxfs/xfs_dir2_block.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 145 fs/xfs/libxfs/xfs_dir2_block.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 150 fs/xfs/libxfs/xfs_dir2_block.c uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid); m_sb 254 fs/xfs/libxfs/xfs_dir2_data.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 255 fs/xfs/libxfs/xfs_dir2_data.c if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) m_sb 300 fs/xfs/libxfs/xfs_dir2_data.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 325 fs/xfs/libxfs/xfs_dir2_data.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 666 fs/xfs/libxfs/xfs_dir2_data.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 673 fs/xfs/libxfs/xfs_dir2_data.c uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid); m_sb 162 fs/xfs/libxfs/xfs_dir2_leaf.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 187 fs/xfs/libxfs/xfs_dir2_leaf.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 263 fs/xfs/libxfs/xfs_dir2_leaf.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 273 fs/xfs/libxfs/xfs_dir2_leaf.c uuid_copy(&leaf3->info.uuid, &mp->m_sb.sb_meta_uuid); m_sb 89 fs/xfs/libxfs/xfs_dir2_node.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 92 fs/xfs/libxfs/xfs_dir2_node.c if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) m_sb 112 fs/xfs/libxfs/xfs_dir2_node.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 137 fs/xfs/libxfs/xfs_dir2_node.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 170 fs/xfs/libxfs/xfs_dir2_node.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 271 fs/xfs/libxfs/xfs_dir2_node.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 278 fs/xfs/libxfs/xfs_dir2_node.c uuid_copy(&hdr3->hdr.uuid, &mp->m_sb.sb_meta_uuid); m_sb 75 fs/xfs/libxfs/xfs_dir2_sf.c has_ftype = xfs_sb_version_hasftype(&mp->m_sb) ? 1 : 0; m_sb 167 fs/xfs/libxfs/xfs_dir2_sf.c dst = kmem_alloc(mp->m_sb.sb_inodesize, 0); m_sb 101 fs/xfs/libxfs/xfs_dquot_buf.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 102 fs/xfs/libxfs/xfs_dquot_buf.c !uuid_equal(&dqb->dd_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 129 fs/xfs/libxfs/xfs_dquot_buf.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 130 fs/xfs/libxfs/xfs_dquot_buf.c uuid_copy(&dqb->dd_uuid, &mp->m_sb.sb_meta_uuid); m_sb 146 fs/xfs/libxfs/xfs_dquot_buf.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 587 fs/xfs/libxfs/xfs_format.h #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) m_sb 589 fs/xfs/libxfs/xfs_format.h ((((uint64_t)(b)) + (mp)->m_blockmask) >> (mp)->m_sb.sb_blocklog) m_sb 590 fs/xfs/libxfs/xfs_format.h #define XFS_B_TO_FSBT(mp,b) (((uint64_t)(b)) >> (mp)->m_sb.sb_blocklog) m_sb 789 fs/xfs/libxfs/xfs_format.h (xfs_sb_version_hascrc(&((mp)->m_sb)) ? \ m_sb 805 fs/xfs/libxfs/xfs_format.h (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno)) m_sb 807 fs/xfs/libxfs/xfs_format.h ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog)) m_sb 809 fs/xfs/libxfs/xfs_format.h ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog))) m_sb 812 fs/xfs/libxfs/xfs_format.h (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno))) m_sb 950 fs/xfs/libxfs/xfs_format.h ((int)(((mp)->m_sb.sb_inodesize) - xfs_dinode_size(version))) m_sb 1072 fs/xfs/libxfs/xfs_format.h #define XFS_INO_OFFSET_BITS(mp) (mp)->m_sb.sb_inopblog m_sb 1073 fs/xfs/libxfs/xfs_format.h #define XFS_INO_AGBNO_BITS(mp) (mp)->m_sb.sb_agblklog m_sb 1111 fs/xfs/libxfs/xfs_format.h #define XFS_BLOCKSIZE(mp) ((mp)->m_sb.sb_blocksize) m_sb 1119 fs/xfs/libxfs/xfs_format.h #define XFS_SUMOFFS(mp,ls,bb) ((int)((ls) * (mp)->m_sb.sb_rbmblocks + (bb))) m_sb 1121 fs/xfs/libxfs/xfs_format.h (((s) * (uint)sizeof(xfs_suminfo_t)) >> (mp)->m_sb.sb_blocklog) m_sb 1221 fs/xfs/libxfs/xfs_format.h ((bufsize) - (xfs_sb_version_hascrc(&(mp)->m_sb) ? \ m_sb 1453 fs/xfs/libxfs/xfs_format.h (xfs_sb_version_hasfinobt(&((mp)->m_sb)) ? \ m_sb 1678 fs/xfs/libxfs/xfs_format.h (xfs_sb_version_hascrc(&mp->m_sb) \ m_sb 61 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hassparseinodes(&cur->bc_mp->m_sb)) { m_sb 81 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hassparseinodes(&mp->m_sb)) { m_sb 306 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 320 fs/xfs/libxfs/xfs_ialloc.c mp->m_sb.sb_inodesize, length, gen); m_sb 341 fs/xfs/libxfs/xfs_ialloc.c int ioffset = i << mp->m_sb.sb_inodelog; m_sb 354 fs/xfs/libxfs/xfs_ialloc.c &mp->m_sb.sb_meta_uuid); m_sb 425 fs/xfs/libxfs/xfs_ialloc.c mod = agbno % mp->m_sb.sb_inoalignmt; m_sb 632 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hassparseinodes(&tp->t_mountp->m_sb) && m_sb 752 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hassparseinodes(&args.mp->m_sb) && m_sb 759 fs/xfs/libxfs/xfs_ialloc.c args.alignment = args.mp->m_sb.sb_spino_align; m_sb 775 fs/xfs/libxfs/xfs_ialloc.c args.min_agbno = args.mp->m_sb.sb_inoalignmt; m_sb 776 fs/xfs/libxfs/xfs_ialloc.c args.max_agbno = round_down(args.mp->m_sb.sb_agblocks, m_sb 777 fs/xfs/libxfs/xfs_ialloc.c args.mp->m_sb.sb_inoalignmt) - m_sb 855 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hasfinobt(&args.mp->m_sb)) { m_sb 869 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hasfinobt(&args.mp->m_sb)) { m_sb 1559 fs/xfs/libxfs/xfs_ialloc.c if (!xfs_sb_version_hasfinobt(&mp->m_sb)) m_sb 1803 fs/xfs/libxfs/xfs_ialloc.c if (++agno == mp->m_sb.sb_agcount) m_sb 1879 fs/xfs/libxfs/xfs_ialloc.c mp->m_sb.sb_inopblock; m_sb 1882 fs/xfs/libxfs/xfs_ialloc.c mp->m_sb.sb_inopblock; m_sb 1884 fs/xfs/libxfs/xfs_ialloc.c ASSERT(agbno % mp->m_sb.sb_spino_align == 0); m_sb 1885 fs/xfs/libxfs/xfs_ialloc.c ASSERT(contigblk % mp->m_sb.sb_spino_align == 0); m_sb 1963 fs/xfs/libxfs/xfs_ialloc.c mp->m_sb.sb_inopblock <= XFS_INODES_PER_CHUNK) { m_sb 2100 fs/xfs/libxfs/xfs_ialloc.c mp->m_sb.sb_inopblock <= XFS_INODES_PER_CHUNK && m_sb 2152 fs/xfs/libxfs/xfs_ialloc.c if (agno >= mp->m_sb.sb_agcount) { m_sb 2154 fs/xfs/libxfs/xfs_ialloc.c __func__, agno, mp->m_sb.sb_agcount); m_sb 2167 fs/xfs/libxfs/xfs_ialloc.c if (agbno >= mp->m_sb.sb_agblocks) { m_sb 2169 fs/xfs/libxfs/xfs_ialloc.c __func__, agbno, mp->m_sb.sb_agblocks); m_sb 2193 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hasfinobt(&mp->m_sb)) { m_sb 2293 fs/xfs/libxfs/xfs_ialloc.c if (agno >= mp->m_sb.sb_agcount || agbno >= mp->m_sb.sb_agblocks || m_sb 2302 fs/xfs/libxfs/xfs_ialloc.c if (agno >= mp->m_sb.sb_agcount) { m_sb 2305 fs/xfs/libxfs/xfs_ialloc.c __func__, agno, mp->m_sb.sb_agcount); m_sb 2307 fs/xfs/libxfs/xfs_ialloc.c if (agbno >= mp->m_sb.sb_agblocks) { m_sb 2311 fs/xfs/libxfs/xfs_ialloc.c (unsigned long)mp->m_sb.sb_agblocks); m_sb 2345 fs/xfs/libxfs/xfs_ialloc.c ASSERT(offset < mp->m_sb.sb_inopblock); m_sb 2350 fs/xfs/libxfs/xfs_ialloc.c mp->m_sb.sb_inodelog); m_sb 2374 fs/xfs/libxfs/xfs_ialloc.c offset = ((agbno - cluster_agbno) * mp->m_sb.sb_inopblock) + m_sb 2379 fs/xfs/libxfs/xfs_ialloc.c imap->im_boffset = (unsigned short)(offset << mp->m_sb.sb_inodelog); m_sb 2388 fs/xfs/libxfs/xfs_ialloc.c XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)) { m_sb 2393 fs/xfs/libxfs/xfs_ialloc.c XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)); m_sb 2474 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 2475 fs/xfs/libxfs/xfs_ialloc.c if (!uuid_equal(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 2494 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hasfinobt(&mp->m_sb) && m_sb 2525 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 2549 fs/xfs/libxfs/xfs_ialloc.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 2764 fs/xfs/libxfs/xfs_ialloc.c struct xfs_sb *sbp = &mp->m_sb; m_sb 2821 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 2824 fs/xfs/libxfs/xfs_ialloc.c new_size *= mp->m_sb.sb_inodesize / XFS_DINODE_MIN_SIZE; m_sb 2825 fs/xfs/libxfs/xfs_ialloc.c if (mp->m_sb.sb_inoalignmt >= XFS_B_TO_FSBT(mp, new_size)) m_sb 2830 fs/xfs/libxfs/xfs_ialloc.c if (igeo->inode_cluster_size_raw > mp->m_sb.sb_blocksize) m_sb 2839 fs/xfs/libxfs/xfs_ialloc.c if (xfs_sb_version_hasalign(&mp->m_sb) && m_sb 2840 fs/xfs/libxfs/xfs_ialloc.c mp->m_sb.sb_inoalignmt >= igeo->blocks_per_cluster) m_sb 2841 fs/xfs/libxfs/xfs_ialloc.c igeo->cluster_align = mp->m_sb.sb_inoalignmt; m_sb 32 fs/xfs/libxfs/xfs_ialloc.h return xfs_buf_offset(b, o << (mp)->m_sb.sb_inodelog); m_sb 194 fs/xfs/libxfs/xfs_ialloc_btree.c if (xfs_sb_version_hassparseinodes(&cur->bc_mp->m_sb)) { m_sb 274 fs/xfs/libxfs/xfs_ialloc_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 431 fs/xfs/libxfs/xfs_ialloc_btree.c cur->bc_blocklog = mp->m_sb.sb_blocklog; m_sb 433 fs/xfs/libxfs/xfs_ialloc_btree.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 556 fs/xfs/libxfs/xfs_ialloc_btree.c if (mp->m_sb.sb_logstart && m_sb 557 fs/xfs/libxfs/xfs_ialloc_btree.c XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart) == agno) m_sb 558 fs/xfs/libxfs/xfs_ialloc_btree.c agblocks -= mp->m_sb.sb_logblocks; m_sb 561 fs/xfs/libxfs/xfs_ialloc_btree.c (uint64_t)agblocks * mp->m_sb.sb_inopblock / m_sb 632 fs/xfs/libxfs/xfs_ialloc_btree.c if (!xfs_sb_version_hasfinobt(&mp->m_sb)) m_sb 21 fs/xfs/libxfs/xfs_ialloc_btree.h (xfs_sb_version_hascrc(&((mp)->m_sb)) ? \ m_sb 37 fs/xfs/libxfs/xfs_inode_buf.c dip = xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize); m_sb 52 fs/xfs/libxfs/xfs_inode_buf.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 87 fs/xfs/libxfs/xfs_inode_buf.c ni = XFS_BB_TO_FSB(mp, bp->b_length) * mp->m_sb.sb_inopblock; m_sb 93 fs/xfs/libxfs/xfs_inode_buf.c dip = xfs_buf_offset(bp, (i << mp->m_sb.sb_inodelog)); m_sb 316 fs/xfs/libxfs/xfs_inode_buf.c uuid_copy(&to->di_uuid, &ip->i_mount->m_sb.sb_meta_uuid); m_sb 458 fs/xfs/libxfs/xfs_inode_buf.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 460 fs/xfs/libxfs/xfs_inode_buf.c if (!xfs_verify_cksum((char *)dip, mp->m_sb.sb_inodesize, m_sb 465 fs/xfs/libxfs/xfs_inode_buf.c if (!uuid_equal(&dip->di_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 488 fs/xfs/libxfs/xfs_inode_buf.c if (mode && XFS_DFORK_BOFF(dip) > mp->m_sb.sb_inodesize) m_sb 560 fs/xfs/libxfs/xfs_inode_buf.c !xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 594 fs/xfs/libxfs/xfs_inode_buf.c ASSERT(xfs_sb_version_hascrc(&mp->m_sb)); m_sb 595 fs/xfs/libxfs/xfs_inode_buf.c crc = xfs_start_cksum_update((char *)dip, mp->m_sb.sb_inodesize, m_sb 633 fs/xfs/libxfs/xfs_inode_buf.c xfs_sb_version_hascrc(&mp->m_sb) && m_sb 746 fs/xfs/libxfs/xfs_inode_buf.c blocksize_bytes = mp->m_sb.sb_rextsize << mp->m_sb.sb_blocklog; m_sb 748 fs/xfs/libxfs/xfs_inode_buf.c blocksize_bytes = mp->m_sb.sb_blocksize; m_sb 772 fs/xfs/libxfs/xfs_inode_buf.c if (!rt_flag && extsize > mp->m_sb.sb_agblocks / 2) m_sb 800 fs/xfs/libxfs/xfs_inode_buf.c if (hint_flag && !xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 816 fs/xfs/libxfs/xfs_inode_buf.c if (cowextsize_bytes % mp->m_sb.sb_blocksize) m_sb 822 fs/xfs/libxfs/xfs_inode_buf.c if (cowextsize > mp->m_sb.sb_agblocks / 2) m_sb 37 fs/xfs/libxfs/xfs_log_format.h #define XLOG_BTOLSUNIT(log, b) (((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \ m_sb 38 fs/xfs/libxfs/xfs_log_format.h (log)->l_mp->m_sb.sb_logsunit) m_sb 39 fs/xfs/libxfs/xfs_log_format.h #define XLOG_LSUNITTOB(log, su) ((su) * (log)->l_mp->m_sb.sb_logsunit) m_sb 47 fs/xfs/libxfs/xfs_log_format.h BTOBB(1 << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \ m_sb 50 fs/xfs/libxfs/xfs_log_format.h BTOBB(XLOG_MAX_ICLOGS << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \ m_sb 95 fs/xfs/libxfs/xfs_log_rlimit.c if (xfs_sb_version_haslogv2(&mp->m_sb) && mp->m_sb.sb_logsunit > 1) m_sb 96 fs/xfs/libxfs/xfs_log_rlimit.c lsunit = BTOBB(mp->m_sb.sb_logsunit); m_sb 838 fs/xfs/libxfs/xfs_refcount.c overhead *= cur->bc_mp->m_sb.sb_blocksize; m_sb 889 fs/xfs/libxfs/xfs_refcount.c ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; m_sb 1209 fs/xfs/libxfs/xfs_refcount.c if (!xfs_sb_version_hasreflink(&tp->t_mountp->m_sb)) m_sb 1224 fs/xfs/libxfs/xfs_refcount.c if (!xfs_sb_version_hasreflink(&tp->t_mountp->m_sb)) m_sb 1407 fs/xfs/libxfs/xfs_refcount.c ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks + m_sb 1551 fs/xfs/libxfs/xfs_refcount.c if (!xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 1570 fs/xfs/libxfs/xfs_refcount.c if (!xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 1621 fs/xfs/libxfs/xfs_refcount.c if (mp->m_sb.sb_agblocks >= XFS_REFC_COW_START) m_sb 213 fs/xfs/libxfs/xfs_refcount_btree.c if (!xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 327 fs/xfs/libxfs/xfs_refcount_btree.c ASSERT(agno < mp->m_sb.sb_agcount); m_sb 333 fs/xfs/libxfs/xfs_refcount_btree.c cur->bc_blocklog = mp->m_sb.sb_blocklog; m_sb 371 fs/xfs/libxfs/xfs_refcount_btree.c mp->m_refc_mnr, mp->m_sb.sb_agblocks); m_sb 415 fs/xfs/libxfs/xfs_refcount_btree.c if (!xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 433 fs/xfs/libxfs/xfs_refcount_btree.c if (mp->m_sb.sb_logstart && m_sb 434 fs/xfs/libxfs/xfs_refcount_btree.c XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart) == agno) m_sb 435 fs/xfs/libxfs/xfs_refcount_btree.c agblocks -= mp->m_sb.sb_logblocks; m_sb 659 fs/xfs/libxfs/xfs_rmap.c if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 896 fs/xfs/libxfs/xfs_rmap.c if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 2263 fs/xfs/libxfs/xfs_rmap.c return xfs_sb_version_hasrmapbt(&mp->m_sb) && whichfork != XFS_COW_FORK; m_sb 312 fs/xfs/libxfs/xfs_rmap_btree.c if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 470 fs/xfs/libxfs/xfs_rmap_btree.c cur->bc_blocklog = mp->m_sb.sb_blocklog; m_sb 517 fs/xfs/libxfs/xfs_rmap_btree.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 521 fs/xfs/libxfs/xfs_rmap_btree.c mp->m_rmap_mnr, mp->m_sb.sb_agblocks); m_sb 565 fs/xfs/libxfs/xfs_rmap_btree.c if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 582 fs/xfs/libxfs/xfs_rmap_btree.c if (mp->m_sb.sb_logstart && m_sb 583 fs/xfs/libxfs/xfs_rmap_btree.c XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart) == agno) m_sb 584 fs/xfs/libxfs/xfs_rmap_btree.c agblocks -= mp->m_sb.sb_logblocks; m_sb 721 fs/xfs/libxfs/xfs_rtbitmap.c error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1, m_sb 998 fs/xfs/libxfs/xfs_rtbitmap.c if (tp->t_frextents_delta + mp->m_sb.sb_frextents == m_sb 999 fs/xfs/libxfs/xfs_rtbitmap.c mp->m_sb.sb_rextents) { m_sb 1027 fs/xfs/libxfs/xfs_rtbitmap.c if (low_rec->ar_startext >= mp->m_sb.sb_rextents || m_sb 1030 fs/xfs/libxfs/xfs_rtbitmap.c if (high_rec->ar_startext > mp->m_sb.sb_rextents) m_sb 1031 fs/xfs/libxfs/xfs_rtbitmap.c high_rec->ar_startext = mp->m_sb.sb_rextents; m_sb 1075 fs/xfs/libxfs/xfs_rtbitmap.c keys[1].ar_startext = tp->t_mountp->m_sb.sb_rextents - 1; m_sb 346 fs/xfs/libxfs/xfs_sb.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 698 fs/xfs/libxfs/xfs_sb.c xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 764 fs/xfs/libxfs/xfs_sb.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 806 fs/xfs/libxfs/xfs_sb.c mp->m_maxagi = mp->m_sb.sb_agcount; m_sb 855 fs/xfs/libxfs/xfs_sb.c xfs_sb_t *sbp = &mp->m_sb; m_sb 925 fs/xfs/libxfs/xfs_sb.c mp->m_sb.sb_icount = percpu_counter_sum(&mp->m_icount); m_sb 926 fs/xfs/libxfs/xfs_sb.c mp->m_sb.sb_ifree = percpu_counter_sum(&mp->m_ifree); m_sb 927 fs/xfs/libxfs/xfs_sb.c mp->m_sb.sb_fdblocks = percpu_counter_sum(&mp->m_fdblocks); m_sb 929 fs/xfs/libxfs/xfs_sb.c xfs_sb_to_disk(XFS_BUF_TO_SBP(bp), &mp->m_sb); m_sb 984 fs/xfs/libxfs/xfs_sb.c for (agno = 1; agno < mp->m_sb.sb_agcount; agno++) { m_sb 1009 fs/xfs/libxfs/xfs_sb.c xfs_sb_to_disk(XFS_BUF_TO_SBP(bp), &mp->m_sb); m_sb 30 fs/xfs/libxfs/xfs_symlink_remote.c int buflen = XFS_SYMLINK_BUF_SPACE(mp, mp->m_sb.sb_blocksize); m_sb 45 fs/xfs/libxfs/xfs_symlink_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 52 fs/xfs/libxfs/xfs_symlink_remote.c uuid_copy(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid); m_sb 92 fs/xfs/libxfs/xfs_symlink_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 96 fs/xfs/libxfs/xfs_symlink_remote.c if (!uuid_equal(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 119 fs/xfs/libxfs/xfs_symlink_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 140 fs/xfs/libxfs/xfs_symlink_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 176 fs/xfs/libxfs/xfs_symlink_remote.c if (!xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 74 fs/xfs/libxfs/xfs_trans_resv.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 76 fs/xfs/libxfs/xfs_trans_resv.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 119 fs/xfs/libxfs/xfs_trans_resv.c mp->m_sb.sb_inodesize + m_sb 158 fs/xfs/libxfs/xfs_trans_resv.c if (!xfs_sb_version_hasfinobt(&mp->m_sb)) m_sb 190 fs/xfs/libxfs/xfs_trans_resv.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 241 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + m_sb 244 fs/xfs/libxfs/xfs_trans_resv.c (xfs_calc_buf_res(5, mp->m_sb.sb_sectsize) + m_sb 268 fs/xfs/libxfs/xfs_trans_resv.c (xfs_calc_buf_res(9, mp->m_sb.sb_sectsize) + m_sb 293 fs/xfs/libxfs/xfs_trans_resv.c (xfs_calc_buf_res(7, mp->m_sb.sb_sectsize) + m_sb 308 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + m_sb 333 fs/xfs/libxfs/xfs_trans_resv.c (xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + m_sb 346 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + m_sb 371 fs/xfs/libxfs/xfs_trans_resv.c (xfs_calc_buf_res(4, mp->m_sb.sb_sectsize) + m_sb 397 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + m_sb 415 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) + m_sb 416 fs/xfs/libxfs/xfs_trans_resv.c mp->m_sb.sb_sectsize + m_sb 485 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + m_sb 502 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); m_sb 516 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) + m_sb 535 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) + m_sb 552 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(1, mp->m_sb.sb_blocksize); m_sb 569 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + m_sb 571 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_buf_res(1, mp->m_sb.sb_blocksize) + m_sb 611 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) + m_sb 637 fs/xfs/libxfs/xfs_trans_resv.c (xfs_calc_buf_res(9, mp->m_sb.sb_sectsize) + m_sb 659 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + m_sb 677 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) + m_sb 704 fs/xfs/libxfs/xfs_trans_resv.c (xfs_calc_buf_res(5, mp->m_sb.sb_sectsize) + m_sb 716 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); m_sb 753 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); m_sb 774 fs/xfs/libxfs/xfs_trans_resv.c return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize); m_sb 787 fs/xfs/libxfs/xfs_trans_resv.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 794 fs/xfs/libxfs/xfs_trans_resv.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 855 fs/xfs/libxfs/xfs_trans_resv.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 60 fs/xfs/libxfs/xfs_trans_space.h (xfs_sb_version_hasfinobt(&mp->m_sb) ? 2 : 1 * \ m_sb 97 fs/xfs/libxfs/xfs_trans_space.h (xfs_sb_version_hasfinobt(&mp->m_sb) ? \ m_sb 21 fs/xfs/libxfs/xfs_types.c ASSERT(agno < mp->m_sb.sb_agcount); m_sb 23 fs/xfs/libxfs/xfs_types.c if (agno < mp->m_sb.sb_agcount - 1) m_sb 24 fs/xfs/libxfs/xfs_types.c return mp->m_sb.sb_agblocks; m_sb 25 fs/xfs/libxfs/xfs_types.c return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks); m_sb 59 fs/xfs/libxfs/xfs_types.c if (agno >= mp->m_sb.sb_agcount) m_sb 134 fs/xfs/libxfs/xfs_types.c if (agno >= mp->m_sb.sb_agcount) m_sb 147 fs/xfs/libxfs/xfs_types.c return ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino || m_sb 148 fs/xfs/libxfs/xfs_types.c (xfs_sb_version_hasquota(&mp->m_sb) && m_sb 149 fs/xfs/libxfs/xfs_types.c xfs_is_quota_inode(&mp->m_sb, ino)); m_sb 175 fs/xfs/libxfs/xfs_types.c return rtbno < mp->m_sb.sb_rblocks; m_sb 191 fs/xfs/libxfs/xfs_types.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 103 fs/xfs/scrub/agheader.c if (sb->sb_blocksize != cpu_to_be32(mp->m_sb.sb_blocksize)) m_sb 106 fs/xfs/scrub/agheader.c if (sb->sb_dblocks != cpu_to_be64(mp->m_sb.sb_dblocks)) m_sb 109 fs/xfs/scrub/agheader.c if (sb->sb_rblocks != cpu_to_be64(mp->m_sb.sb_rblocks)) m_sb 112 fs/xfs/scrub/agheader.c if (sb->sb_rextents != cpu_to_be64(mp->m_sb.sb_rextents)) m_sb 115 fs/xfs/scrub/agheader.c if (!uuid_equal(&sb->sb_uuid, &mp->m_sb.sb_uuid)) m_sb 118 fs/xfs/scrub/agheader.c if (sb->sb_logstart != cpu_to_be64(mp->m_sb.sb_logstart)) m_sb 121 fs/xfs/scrub/agheader.c if (sb->sb_rootino != cpu_to_be64(mp->m_sb.sb_rootino)) m_sb 124 fs/xfs/scrub/agheader.c if (sb->sb_rbmino != cpu_to_be64(mp->m_sb.sb_rbmino)) m_sb 127 fs/xfs/scrub/agheader.c if (sb->sb_rsumino != cpu_to_be64(mp->m_sb.sb_rsumino)) m_sb 130 fs/xfs/scrub/agheader.c if (sb->sb_rextsize != cpu_to_be32(mp->m_sb.sb_rextsize)) m_sb 133 fs/xfs/scrub/agheader.c if (sb->sb_agblocks != cpu_to_be32(mp->m_sb.sb_agblocks)) m_sb 136 fs/xfs/scrub/agheader.c if (sb->sb_agcount != cpu_to_be32(mp->m_sb.sb_agcount)) m_sb 139 fs/xfs/scrub/agheader.c if (sb->sb_rbmblocks != cpu_to_be32(mp->m_sb.sb_rbmblocks)) m_sb 142 fs/xfs/scrub/agheader.c if (sb->sb_logblocks != cpu_to_be32(mp->m_sb.sb_logblocks)) m_sb 156 fs/xfs/scrub/agheader.c (cpu_to_be16(mp->m_sb.sb_versionnum) & vernum_mask)) m_sb 164 fs/xfs/scrub/agheader.c (cpu_to_be16(mp->m_sb.sb_versionnum) & vernum_mask)) m_sb 167 fs/xfs/scrub/agheader.c if (sb->sb_sectsize != cpu_to_be16(mp->m_sb.sb_sectsize)) m_sb 170 fs/xfs/scrub/agheader.c if (sb->sb_inodesize != cpu_to_be16(mp->m_sb.sb_inodesize)) m_sb 173 fs/xfs/scrub/agheader.c if (sb->sb_inopblock != cpu_to_be16(mp->m_sb.sb_inopblock)) m_sb 176 fs/xfs/scrub/agheader.c if (memcmp(sb->sb_fname, mp->m_sb.sb_fname, sizeof(sb->sb_fname))) m_sb 179 fs/xfs/scrub/agheader.c if (sb->sb_blocklog != mp->m_sb.sb_blocklog) m_sb 182 fs/xfs/scrub/agheader.c if (sb->sb_sectlog != mp->m_sb.sb_sectlog) m_sb 185 fs/xfs/scrub/agheader.c if (sb->sb_inodelog != mp->m_sb.sb_inodelog) m_sb 188 fs/xfs/scrub/agheader.c if (sb->sb_inopblog != mp->m_sb.sb_inopblog) m_sb 191 fs/xfs/scrub/agheader.c if (sb->sb_agblklog != mp->m_sb.sb_agblklog) m_sb 194 fs/xfs/scrub/agheader.c if (sb->sb_rextslog != mp->m_sb.sb_rextslog) m_sb 197 fs/xfs/scrub/agheader.c if (sb->sb_imax_pct != mp->m_sb.sb_imax_pct) m_sb 205 fs/xfs/scrub/agheader.c if (sb->sb_uquotino != cpu_to_be64(mp->m_sb.sb_uquotino)) m_sb 208 fs/xfs/scrub/agheader.c if (sb->sb_gquotino != cpu_to_be64(mp->m_sb.sb_gquotino)) m_sb 216 fs/xfs/scrub/agheader.c if (sb->sb_flags != mp->m_sb.sb_flags) m_sb 219 fs/xfs/scrub/agheader.c if (sb->sb_shared_vn != mp->m_sb.sb_shared_vn) m_sb 222 fs/xfs/scrub/agheader.c if (sb->sb_inoalignmt != cpu_to_be32(mp->m_sb.sb_inoalignmt)) m_sb 225 fs/xfs/scrub/agheader.c if (sb->sb_unit != cpu_to_be32(mp->m_sb.sb_unit)) m_sb 228 fs/xfs/scrub/agheader.c if (sb->sb_width != cpu_to_be32(mp->m_sb.sb_width)) m_sb 231 fs/xfs/scrub/agheader.c if (sb->sb_dirblklog != mp->m_sb.sb_dirblklog) m_sb 234 fs/xfs/scrub/agheader.c if (sb->sb_logsectlog != mp->m_sb.sb_logsectlog) m_sb 237 fs/xfs/scrub/agheader.c if (sb->sb_logsectsize != cpu_to_be16(mp->m_sb.sb_logsectsize)) m_sb 240 fs/xfs/scrub/agheader.c if (sb->sb_logsunit != cpu_to_be32(mp->m_sb.sb_logsunit)) m_sb 244 fs/xfs/scrub/agheader.c if (!xfs_sb_version_hasmorebits(&mp->m_sb)) { m_sb 249 fs/xfs/scrub/agheader.c if (XFS_SB_VERSION_NUM(&mp->m_sb) >= XFS_SB_VERSION_5) m_sb 265 fs/xfs/scrub/agheader.c (cpu_to_be32(mp->m_sb.sb_features2) & features_mask)) m_sb 271 fs/xfs/scrub/agheader.c (cpu_to_be32(mp->m_sb.sb_features2) & features_mask)) m_sb 274 fs/xfs/scrub/agheader.c if (!xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 284 fs/xfs/scrub/agheader.c (cpu_to_be32(mp->m_sb.sb_features_compat) & features_mask)) m_sb 293 fs/xfs/scrub/agheader.c (cpu_to_be32(mp->m_sb.sb_features_ro_compat) & m_sb 303 fs/xfs/scrub/agheader.c (cpu_to_be32(mp->m_sb.sb_features_incompat) & m_sb 310 fs/xfs/scrub/agheader.c (cpu_to_be32(mp->m_sb.sb_features_log_incompat) & m_sb 316 fs/xfs/scrub/agheader.c if (sb->sb_spino_align != cpu_to_be32(mp->m_sb.sb_spino_align)) m_sb 319 fs/xfs/scrub/agheader.c if (sb->sb_pquotino != cpu_to_be64(mp->m_sb.sb_pquotino)) m_sb 325 fs/xfs/scrub/agheader.c if (xfs_sb_version_hasmetauuid(&mp->m_sb)) { m_sb 327 fs/xfs/scrub/agheader.c if (!uuid_equal(&sb->sb_meta_uuid, &mp->m_sb.sb_meta_uuid)) m_sb 435 fs/xfs/scrub/agheader.c if ((xfs_sb_version_hasrmapbt(&mp->m_sb) && !sc->sa.rmap_cur) || m_sb 552 fs/xfs/scrub/agheader.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) { m_sb 562 fs/xfs/scrub/agheader.c if (xfs_sb_version_hasreflink(&mp->m_sb)) { m_sb 853 fs/xfs/scrub/agheader.c if (xfs_sb_version_hasfinobt(&mp->m_sb)) { m_sb 52 fs/xfs/scrub/agheader_repair.c xfs_sb_to_disk(XFS_BUF_TO_SBP(bp), &mp->m_sb); m_sb 166 fs/xfs/scrub/agheader_repair.c if (xfs_sb_version_hasreflink(&sc->mp->m_sb) && m_sb 195 fs/xfs/scrub/agheader_repair.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 196 fs/xfs/scrub/agheader_repair.c uuid_copy(&agf->agf_uuid, &mp->m_sb.sb_meta_uuid); m_sb 225 fs/xfs/scrub/agheader_repair.c if (xfs_sb_version_hasreflink(&sc->mp->m_sb)) { m_sb 282 fs/xfs/scrub/agheader_repair.c if (xfs_sb_version_hasreflink(&mp->m_sb)) { m_sb 365 fs/xfs/scrub/agheader_repair.c if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 597 fs/xfs/scrub/agheader_repair.c uuid_copy(&agfl->agfl_uuid, &mp->m_sb.sb_meta_uuid); m_sb 648 fs/xfs/scrub/agheader_repair.c if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 751 fs/xfs/scrub/agheader_repair.c if (xfs_sb_version_hasfinobt(&mp->m_sb) && m_sb 779 fs/xfs/scrub/agheader_repair.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 780 fs/xfs/scrub/agheader_repair.c uuid_copy(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid); m_sb 801 fs/xfs/scrub/agheader_repair.c if (xfs_sb_version_hasfinobt(&sc->mp->m_sb)) { m_sb 885 fs/xfs/scrub/agheader_repair.c if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 338 fs/xfs/scrub/attr.c if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb)) { m_sb 388 fs/xfs/scrub/bmap.c if (xfs_sb_version_hascrc(&bs->cur->bc_mp->m_sb) && m_sb 573 fs/xfs/scrub/bmap.c if (!xfs_sb_version_hasrmapbt(&sc->mp->m_sb) || m_sb 604 fs/xfs/scrub/bmap.c for (agno = 0; agno < sc->mp->m_sb.sb_agcount; agno++) { m_sb 656 fs/xfs/scrub/bmap.c if (!xfs_sb_version_hasattr(&mp->m_sb) && m_sb 657 fs/xfs/scrub/bmap.c !xfs_sb_version_hasattr2(&mp->m_sb)) m_sb 492 fs/xfs/scrub/common.c if (sa->agi_bp && xfs_sb_version_hasfinobt(&mp->m_sb) && m_sb 501 fs/xfs/scrub/common.c if (sa->agf_bp && xfs_sb_version_hasrmapbt(&mp->m_sb) && m_sb 510 fs/xfs/scrub/common.c if (sa->agf_bp && xfs_sb_version_hasreflink(&mp->m_sb) && m_sb 864 fs/xfs/scrub/common.c if (xfs_sb_version_hasreflink(&sc->mp->m_sb)) { m_sb 386 fs/xfs/scrub/dabtree.c if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb) && hdr3->hdr.pad) m_sb 390 fs/xfs/scrub/dabtree.c if (xfs_sb_version_hascrc(&ip->i_mount->m_sb)) { m_sb 55 fs/xfs/scrub/dir.c if (!xfs_sb_version_hasftype(&mp->m_sb)) { m_sb 130 fs/xfs/scrub/dir.c if (xfs_sb_version_hasftype(&mp->m_sb) && type != DT_DIR) m_sb 141 fs/xfs/scrub/dir.c if (xfs_sb_version_hasftype(&mp->m_sb) && type != DT_DIR) m_sb 144 fs/xfs/scrub/dir.c if (ip->i_ino == mp->m_sb.sb_rootino && ino != ip->i_ino) m_sb 507 fs/xfs/scrub/dir.c if (xfs_sb_version_hascrc(&sc->mp->m_sb)) { m_sb 590 fs/xfs/scrub/dir.c if (xfs_sb_version_hascrc(&sc->mp->m_sb)) { m_sb 73 fs/xfs/scrub/fscounters.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 172 fs/xfs/scrub/fscounters.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 223 fs/xfs/scrub/fscounters.c fsc->fdblocks > mp->m_sb.sb_dblocks || m_sb 325 fs/xfs/scrub/fscounters.c if (fdblocks > mp->m_sb.sb_dblocks) m_sb 249 fs/xfs/scrub/ialloc.c mp->m_sb.sb_inodelog; m_sb 300 fs/xfs/scrub/ialloc.c imap.im_boffset += mp->m_sb.sb_inodesize; m_sb 466 fs/xfs/scrub/ialloc.c XFS_INODES_PER_CHUNK * mp->m_sb.sb_inodesize); m_sb 479 fs/xfs/scrub/ialloc.c XFS_INODES_PER_HOLEMASK_BIT * mp->m_sb.sb_inodesize); m_sb 522 fs/xfs/scrub/ialloc.c (xfs_sb_version_hasfinobt(&sc->mp->m_sb) && !sc->sa.fino_cur) || m_sb 567 fs/xfs/scrub/ialloc.c inode_blocks = XFS_B_TO_FSB(sc->mp, inodes * sc->mp->m_sb.sb_inodesize); m_sb 129 fs/xfs/scrub/inode.c if ((flags & XFS_DIFLAG_NEWRTBM) && ino != mp->m_sb.sb_rbmino) m_sb 172 fs/xfs/scrub/inode.c !xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 254 fs/xfs/scrub/inode.c !xfs_sb_version_hasprojid32bit(&mp->m_sb)) m_sb 345 fs/xfs/scrub/inode.c mp->m_sb.sb_dblocks + mp->m_sb.sb_rblocks) m_sb 348 fs/xfs/scrub/inode.c if (be64_to_cpu(dip->di_nblocks) >= mp->m_sb.sb_dblocks) m_sb 375 fs/xfs/scrub/inode.c if (XFS_DFORK_APTR(dip) >= (char *)dip + mp->m_sb.sb_inodesize) m_sb 540 fs/xfs/scrub/inode.c if (!xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 292 fs/xfs/scrub/parent.c if (sc->ip->i_ino != mp->m_sb.sb_rootino || m_sb 131 fs/xfs/scrub/quota.c if (bhard > mp->m_sb.sb_dblocks) m_sb 141 fs/xfs/scrub/quota.c if (rhard > mp->m_sb.sb_rblocks) m_sb 157 fs/xfs/scrub/quota.c if (xfs_sb_version_hasreflink(&mp->m_sb)) { m_sb 158 fs/xfs/scrub/quota.c if (mp->m_sb.sb_dblocks < bcount) m_sb 162 fs/xfs/scrub/quota.c if (mp->m_sb.sb_dblocks < bcount) m_sb 166 fs/xfs/scrub/quota.c if (icount > fs_icount || rcount > mp->m_sb.sb_rblocks) m_sb 245 fs/xfs/scrub/repair.c if (xfs_sb_version_hassparseinodes(&mp->m_sb)) m_sb 251 fs/xfs/scrub/repair.c if (xfs_sb_version_hasfinobt(&mp->m_sb)) m_sb 253 fs/xfs/scrub/repair.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 257 fs/xfs/scrub/repair.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) { m_sb 266 fs/xfs/scrub/repair.c if (xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 605 fs/xfs/scrub/repair.c ASSERT(xfs_sb_version_hasrmapbt(&sc->mp->m_sb)); m_sb 752 fs/xfs/scrub/repair.c &mp->m_sb.sb_meta_uuid)) m_sb 910 fs/xfs/scrub/repair.c sc->mp->m_sb.sb_qflags &= ~flag; m_sb 51 fs/xfs/scrub/rtbitmap.c startblock = rec->ar_startext * tp->t_mountp->m_sb.sb_rextsize; m_sb 52 fs/xfs/scrub/rtbitmap.c blockcount = rec->ar_extcount * tp->t_mountp->m_sb.sb_rextsize; m_sb 136 fs/xfs/scrub/rtbitmap.c do_div(startext, sc->mp->m_sb.sb_rextsize); m_sb 137 fs/xfs/scrub/rtbitmap.c do_div(endext, sc->mp->m_sb.sb_rextsize); m_sb 382 fs/xfs/scrub/scrub.c if (ops->has && !ops->has(&mp->m_sb)) m_sb 395 fs/xfs/scrub/scrub.c sm->sm_agno >= mp->m_sb.sb_agcount) m_sb 414 fs/xfs/scrub/scrub.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 612 fs/xfs/scrub/trace.h __entry->icount_sb = mp->m_sb.sb_icount; m_sb 614 fs/xfs/scrub/trace.h __entry->ifree_sb = mp->m_sb.sb_ifree; m_sb 616 fs/xfs/scrub/trace.h __entry->fdblocks_sb = mp->m_sb.sb_fdblocks; m_sb 483 fs/xfs/xfs_bmap_item.c startblock_fsb >= mp->m_sb.sb_dblocks || m_sb 484 fs/xfs/xfs_bmap_item.c bmap->me_len >= mp->m_sb.sb_agblocks || m_sb 485 fs/xfs/xfs_bmap_item.c inode_fsb >= mp->m_sb.sb_dblocks || m_sb 85 fs/xfs/xfs_bmap_util.c prod = align / mp->m_sb.sb_rextsize; m_sb 92 fs/xfs/xfs_bmap_util.c ASSERT(ap->length % mp->m_sb.sb_rextsize == 0); m_sb 104 fs/xfs/xfs_bmap_util.c ralen = ap->length / mp->m_sb.sb_rextsize; m_sb 112 fs/xfs/xfs_bmap_util.c if (ralen * mp->m_sb.sb_rextsize >= MAXEXTLEN) m_sb 113 fs/xfs/xfs_bmap_util.c ralen = MAXEXTLEN / mp->m_sb.sb_rextsize; m_sb 133 fs/xfs/xfs_bmap_util.c ap->blkno = rtx * mp->m_sb.sb_rextsize; m_sb 143 fs/xfs/xfs_bmap_util.c do_div(ap->blkno, mp->m_sb.sb_rextsize); m_sb 153 fs/xfs/xfs_bmap_util.c ap->blkno *= mp->m_sb.sb_rextsize; m_sb 154 fs/xfs/xfs_bmap_util.c ralen *= mp->m_sb.sb_rextsize; m_sb 379 fs/xfs/xfs_bmap_util.c ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); m_sb 380 fs/xfs/xfs_bmap_util.c ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); m_sb 933 fs/xfs/xfs_bmap_util.c resrtextents /= mp->m_sb.sb_rextsize; m_sb 1056 fs/xfs/xfs_bmap_util.c rounding = max_t(xfs_off_t, 1 << mp->m_sb.sb_blocklog, PAGE_SIZE); m_sb 1150 fs/xfs/xfs_bmap_util.c blksize = 1 << mp->m_sb.sb_blocklog; m_sb 1392 fs/xfs/xfs_bmap_util.c if (xfs_sb_version_hasrmapbt(&ip->i_mount->m_sb)) m_sb 1771 fs/xfs/xfs_bmap_util.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) { m_sb 1854 fs/xfs/xfs_bmap_util.c if (xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 1873 fs/xfs/xfs_bmap_util.c if (xfs_sb_version_hasreflink(&mp->m_sb)) { m_sb 595 fs/xfs/xfs_buf.c eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks); m_sb 1378 fs/xfs/xfs_buf.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 2109 fs/xfs/xfs_buf.c idx = xfs_sb_version_hascrc(&mp->m_sb); m_sb 2127 fs/xfs/xfs_buf.c idx = xfs_sb_version_hascrc(&mp->m_sb); m_sb 331 fs/xfs/xfs_buf_item.c if (xfs_sb_version_hascrc(&lip->li_mountp->m_sb) || m_sb 34 fs/xfs/xfs_dir2_readdir.c if (!xfs_sb_version_hasftype(&mp->m_sb)) m_sb 182 fs/xfs/xfs_discard.c if (range.start >= XFS_FSB_TO_B(mp, mp->m_sb.sb_dblocks) || m_sb 184 fs/xfs/xfs_discard.c range.len < mp->m_sb.sb_blocksize) m_sb 190 fs/xfs/xfs_discard.c if (end > XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks) - 1) m_sb 191 fs/xfs/xfs_discard.c end = XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)- 1; m_sb 234 fs/xfs/xfs_dquot.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 235 fs/xfs/xfs_dquot.c uuid_copy(&d->dd_uuid, &mp->m_sb.sb_meta_uuid); m_sb 1152 fs/xfs/xfs_dquot.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 625 fs/xfs/xfs_extent_busy.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 619 fs/xfs/xfs_extfree_item.c startblock_fsb >= mp->m_sb.sb_dblocks || m_sb 620 fs/xfs/xfs_extfree_item.c extp->ext_len >= mp->m_sb.sb_agblocks) { m_sb 989 fs/xfs/xfs_file.c if (!xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 146 fs/xfs/xfs_filestream.c minfree = mp->m_sb.sb_agblocks / 50; m_sb 208 fs/xfs/xfs_filestream.c if (++ag >= mp->m_sb.sb_agcount) m_sb 332 fs/xfs/xfs_filestream.c startag = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; m_sb 334 fs/xfs/xfs_filestream.c (mp->m_sb.sb_agcount * rotorstep); m_sb 374 fs/xfs/xfs_filestream.c startag = (item->ag + 1) % mp->m_sb.sb_agcount; m_sb 204 fs/xfs/xfs_fsmap.c if (!xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 429 fs/xfs/xfs_fsmap.c rmap.rm_blockcount = mp->m_sb.sb_logblocks; m_sb 450 fs/xfs/xfs_fsmap.c irec.rm_startblock = rec->ar_startext * mp->m_sb.sb_rextsize; m_sb 452 fs/xfs/xfs_fsmap.c irec.rm_blockcount = rec->ar_extcount * mp->m_sb.sb_rextsize; m_sb 475 fs/xfs/xfs_fsmap.c eofs = XFS_FSB_TO_BB(mp, mp->m_sb.sb_rblocks); m_sb 520 fs/xfs/xfs_fsmap.c do_div(alow.ar_startext, tp->t_mountp->m_sb.sb_rextsize); m_sb 521 fs/xfs/xfs_fsmap.c if (do_div(ahigh.ar_startext, tp->t_mountp->m_sb.sb_rextsize)) m_sb 572 fs/xfs/xfs_fsmap.c eofs = XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks); m_sb 836 fs/xfs/xfs_fsmap.c xfs_sb_version_hasrmapbt(&mp->m_sb); m_sb 42 fs/xfs/xfs_fsops.c if (nb < mp->m_sb.sb_dblocks) m_sb 44 fs/xfs/xfs_fsops.c if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) m_sb 54 fs/xfs/xfs_fsops.c nb_mod = do_div(new, mp->m_sb.sb_agblocks); m_sb 58 fs/xfs/xfs_fsops.c nb = (xfs_rfsblock_t)nagcount * mp->m_sb.sb_agblocks; m_sb 59 fs/xfs/xfs_fsops.c if (nb < mp->m_sb.sb_dblocks) m_sb 62 fs/xfs/xfs_fsops.c new = nb - mp->m_sb.sb_dblocks; m_sb 63 fs/xfs/xfs_fsops.c oagcount = mp->m_sb.sb_agcount; m_sb 96 fs/xfs/xfs_fsops.c (id.agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); m_sb 98 fs/xfs/xfs_fsops.c id.agsize = mp->m_sb.sb_agblocks; m_sb 126 fs/xfs/xfs_fsops.c if (nb > mp->m_sb.sb_dblocks) m_sb 128 fs/xfs/xfs_fsops.c nb - mp->m_sb.sb_dblocks); m_sb 181 fs/xfs/xfs_fsops.c if (nb == mp->m_sb.sb_logblocks && m_sb 182 fs/xfs/xfs_fsops.c in->isint == (mp->m_sb.sb_logstart != 0)) m_sb 210 fs/xfs/xfs_fsops.c dpct = imaxpct - mp->m_sb.sb_imax_pct; m_sb 234 fs/xfs/xfs_fsops.c if (in->imaxpct != mp->m_sb.sb_imax_pct) { m_sb 240 fs/xfs/xfs_fsops.c if (in->newblocks != mp->m_sb.sb_dblocks) { m_sb 247 fs/xfs/xfs_fsops.c if (mp->m_sb.sb_imax_pct) { m_sb 248 fs/xfs/xfs_fsops.c uint64_t icount = mp->m_sb.sb_dblocks * mp->m_sb.sb_imax_pct; m_sb 299 fs/xfs/xfs_fsops.c cnt->freertx = mp->m_sb.sb_frextents; m_sb 532 fs/xfs/xfs_fsops.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 561 fs/xfs/xfs_fsops.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 37 fs/xfs/xfs_health.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 638 fs/xfs/xfs_icache.c if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) m_sb 61 fs/xfs/xfs_inode.c return ip->i_mount->m_sb.sb_rextsize; m_sb 3825 fs/xfs/xfs_inode.c if (XFS_TEST_ERROR(ip->i_d.di_forkoff > mp->m_sb.sb_inodesize, m_sb 350 fs/xfs/xfs_inode_item.c uuid_copy(&to->di_uuid, &ip->i_mount->m_sb.sb_meta_uuid); m_sb 868 fs/xfs/xfs_ioctl.c hdr->ino = mp->m_sb.sb_rootino; m_sb 882 fs/xfs/xfs_ioctl.c if (hdr->agno >= mp->m_sb.sb_agcount) m_sb 899 fs/xfs/xfs_ioctl.c if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount) m_sb 1017 fs/xfs/xfs_ioctl.c xfs_fs_geometry(&mp->m_sb, &fsgeo, struct_version); m_sb 1118 fs/xfs/xfs_ioctl.c fa->fsx_extsize = ip->i_d.di_extsize << ip->i_mount->m_sb.sb_blocklog; m_sb 1120 fs/xfs/xfs_ioctl.c ip->i_mount->m_sb.sb_blocklog; m_sb 1261 fs/xfs/xfs_ioctl.c if (mp->m_sb.sb_rblocks == 0 || mp->m_sb.sb_rextsize == 0 || m_sb 1262 fs/xfs/xfs_ioctl.c (ip->i_d.di_extsize % mp->m_sb.sb_rextsize)) m_sb 1435 fs/xfs/xfs_ioctl.c ((ip->i_d.di_extsize << mp->m_sb.sb_blocklog) != fa->fsx_extsize)) m_sb 1447 fs/xfs/xfs_ioctl.c size = mp->m_sb.sb_rextsize << mp->m_sb.sb_blocklog; m_sb 1449 fs/xfs/xfs_ioctl.c size = mp->m_sb.sb_blocksize; m_sb 1450 fs/xfs/xfs_ioctl.c if (extsize_fsb > mp->m_sb.sb_agblocks / 2) m_sb 1487 fs/xfs/xfs_ioctl.c if (!xfs_sb_version_hasreflink(&ip->i_mount->m_sb) || m_sb 1498 fs/xfs/xfs_ioctl.c size = mp->m_sb.sb_blocksize; m_sb 1499 fs/xfs/xfs_ioctl.c if (cowextsize_fsb > mp->m_sb.sb_agblocks / 2) m_sb 1515 fs/xfs/xfs_ioctl.c !xfs_sb_version_hasprojid32bit(&ip->i_mount->m_sb)) m_sb 1626 fs/xfs/xfs_ioctl.c ip->i_d.di_extsize = fa->fsx_extsize >> mp->m_sb.sb_blocklog; m_sb 1632 fs/xfs/xfs_ioctl.c mp->m_sb.sb_blocklog; m_sb 2021 fs/xfs/xfs_ioctl.c struct xfs_sb *sbp = &mp->m_sb; m_sb 2044 fs/xfs/xfs_ioctl.c struct xfs_sb *sbp = &mp->m_sb; m_sb 53 fs/xfs/xfs_ioctl32.c xfs_fs_geometry(&mp->m_sb, &fsgeo, 3); m_sb 223 fs/xfs/xfs_iomap.c resrtextents /= mp->m_sb.sb_rextsize; m_sb 351 fs/xfs/xfs_iops.c if (xfs_sb_version_hasasciici(&XFS_M(dir->i_sb)->m_sb)) m_sb 553 fs/xfs/xfs_iops.c xfs_get_extsz_hint(ip) << mp->m_sb.sb_blocklog; m_sb 741 fs/xfs/xfs_iops.c ASSERT(xfs_sb_version_has_pquotino(&mp->m_sb) || m_sb 1226 fs/xfs/xfs_iops.c if (mp->m_sb.sb_blocksize != PAGE_SIZE) m_sb 1333 fs/xfs/xfs_iops.c if (xfs_sb_version_hasasciici(&XFS_M(inode->i_sb)->m_sb)) m_sb 126 fs/xfs/xfs_itable.c buf->bs_blksize = mp->m_sb.sb_blocksize; m_sb 132 fs/xfs/xfs_itable.c buf->bs_blksize = mp->m_sb.sb_blocksize; m_sb 226 fs/xfs/xfs_itable.c return agno >= mp->m_sb.sb_agcount || m_sb 541 fs/xfs/xfs_iwalk.c ASSERT(agno < mp->m_sb.sb_agcount); m_sb 548 fs/xfs/xfs_iwalk.c for (; agno < mp->m_sb.sb_agcount; agno++) { m_sb 604 fs/xfs/xfs_iwalk.c ASSERT(agno < mp->m_sb.sb_agcount); m_sb 613 fs/xfs/xfs_iwalk.c for (; agno < mp->m_sb.sb_agcount; agno++) { m_sb 702 fs/xfs/xfs_iwalk.c ASSERT(agno < mp->m_sb.sb_agcount); m_sb 709 fs/xfs/xfs_iwalk.c for (; agno < mp->m_sb.sb_agcount; agno++) { m_sb 585 fs/xfs/xfs_log.c bool fatal = xfs_sb_version_hascrc(&mp->m_sb); m_sb 591 fs/xfs/xfs_log.c XFS_SB_VERSION_NUM(&mp->m_sb)); m_sb 595 fs/xfs/xfs_log.c XFS_SB_VERSION_NUM(&mp->m_sb)); m_sb 621 fs/xfs/xfs_log.c if (mp->m_sb.sb_logblocks < min_logfsbs) { m_sb 624 fs/xfs/xfs_log.c mp->m_sb.sb_logblocks, min_logfsbs); m_sb 626 fs/xfs/xfs_log.c } else if (mp->m_sb.sb_logblocks > XFS_MAX_LOG_BLOCKS) { m_sb 629 fs/xfs/xfs_log.c mp->m_sb.sb_logblocks, XFS_MAX_LOG_BLOCKS); m_sb 631 fs/xfs/xfs_log.c } else if (XFS_FSB_TO_B(mp, mp->m_sb.sb_logblocks) > XFS_MAX_LOG_BYTES) { m_sb 634 fs/xfs/xfs_log.c XFS_FSB_TO_B(mp, mp->m_sb.sb_logblocks), m_sb 637 fs/xfs/xfs_log.c } else if (mp->m_sb.sb_logsunit > 1 && m_sb 638 fs/xfs/xfs_log.c mp->m_sb.sb_logsunit % mp->m_sb.sb_blocksize) { m_sb 641 fs/xfs/xfs_log.c mp->m_sb.sb_logsunit); m_sb 1392 fs/xfs/xfs_log.c if (xfs_sb_version_hassector(&mp->m_sb)) { m_sb 1393 fs/xfs/xfs_log.c log2_size = mp->m_sb.sb_logsectlog; m_sb 1409 fs/xfs/xfs_log.c !xfs_sb_version_haslogv2(&mp->m_sb)) { m_sb 1456 fs/xfs/xfs_log.c xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? 2 : 1); m_sb 1460 fs/xfs/xfs_log.c memcpy(&head->h_fs_uuid, &mp->m_sb.sb_uuid, sizeof(uuid_t)); m_sb 1627 fs/xfs/xfs_log.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { m_sb 1664 fs/xfs/xfs_log.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { m_sb 1812 fs/xfs/xfs_log.c use_lsunit = xfs_sb_version_haslogv2(&log->l_mp->m_sb) && m_sb 1813 fs/xfs/xfs_log.c log->l_mp->m_sb.sb_logsunit > 1; m_sb 1830 fs/xfs/xfs_log.c ASSERT(*roundoff < log->l_mp->m_sb.sb_logsunit); m_sb 1883 fs/xfs/xfs_log.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) m_sb 3244 fs/xfs/xfs_log.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb) && m_sb 3245 fs/xfs/xfs_log.c log->l_mp->m_sb.sb_logsunit > 1) { m_sb 3246 fs/xfs/xfs_log.c uint32_t sunit_bb = BTOBB(log->l_mp->m_sb.sb_logsunit); m_sb 3642 fs/xfs/xfs_log.c if (xfs_sb_version_haslogv2(&mp->m_sb) && mp->m_sb.sb_logsunit > 1) { m_sb 3644 fs/xfs/xfs_log.c unit_bytes += 2 * mp->m_sb.sb_logsunit; m_sb 224 fs/xfs/xfs_log_recover.c __func__, &mp->m_sb.sb_uuid, XLOG_FMT); m_sb 254 fs/xfs/xfs_log_recover.c } else if (unlikely(!uuid_equal(&mp->m_sb.sb_uuid, &head->h_fs_uuid))) { m_sb 282 fs/xfs/xfs_log_recover.c } else if (unlikely(!uuid_equal(&mp->m_sb.sb_uuid, &head->h_fs_uuid))) { m_sb 517 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { m_sb 1212 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { m_sb 1566 fs/xfs/xfs_log_recover.c xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? 2 : 1); m_sb 1570 fs/xfs/xfs_log_recover.c memcpy(&recp->h_fs_uuid, &log->l_mp->m_sb.sb_uuid, sizeof(uuid_t)); m_sb 2084 fs/xfs/xfs_log_recover.c if (xfs_sb_version_hascrc(&mp->m_sb)) m_sb 2087 fs/xfs/xfs_log_recover.c inodes_per_buf = BBTOB(bp->b_length) >> mp->m_sb.sb_inodelog; m_sb 2089 fs/xfs/xfs_log_recover.c next_unlinked_offset = (i * mp->m_sb.sb_inodesize) + m_sb 2157 fs/xfs/xfs_log_recover.c xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize)); m_sb 2197 fs/xfs/xfs_log_recover.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 2264 fs/xfs/xfs_log_recover.c if (xfs_sb_version_hasmetauuid(&mp->m_sb)) m_sb 2274 fs/xfs/xfs_log_recover.c if (!uuid_equal(&mp->m_sb.sb_meta_uuid, uuid)) m_sb 2292 fs/xfs/xfs_log_recover.c if (!uuid_equal(&mp->m_sb.sb_uuid, uuid)) m_sb 2353 fs/xfs/xfs_log_recover.c if (!xfs_sb_version_hascrc(&mp->m_sb)) m_sb 3017 fs/xfs/xfs_log_recover.c if (!xfs_sb_version_hascrc(&mp->m_sb) && m_sb 3077 fs/xfs/xfs_log_recover.c if (unlikely(ldip->di_forkoff > mp->m_sb.sb_inodesize)) { m_sb 3306 fs/xfs/xfs_log_recover.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 3316 fs/xfs/xfs_log_recover.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 3795 fs/xfs/xfs_log_recover.c if (agno >= mp->m_sb.sb_agcount) { m_sb 3800 fs/xfs/xfs_log_recover.c if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { m_sb 3805 fs/xfs/xfs_log_recover.c if (isize != mp->m_sb.sb_inodesize) { m_sb 3815 fs/xfs/xfs_log_recover.c if (!length || length >= mp->m_sb.sb_agblocks) { m_sb 3832 fs/xfs/xfs_log_recover.c if ((count >> mp->m_sb.sb_inopblog) != length) { m_sb 5063 fs/xfs/xfs_log_recover.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 5115 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { m_sb 5163 fs/xfs/xfs_log_recover.c if (old_crc || xfs_sb_version_hascrc(&log->l_mp->m_sb)) { m_sb 5175 fs/xfs/xfs_log_recover.c if (xfs_sb_version_hascrc(&log->l_mp->m_sb)) m_sb 5260 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { m_sb 5638 fs/xfs/xfs_log_recover.c sbp = &mp->m_sb; m_sb 5680 fs/xfs/xfs_log_recover.c if (xfs_sb_version_hascrc(&log->l_mp->m_sb) && m_sb 5681 fs/xfs/xfs_log_recover.c !xfs_log_check_lsn(log->l_mp, log->l_mp->m_sb.sb_lsn)) m_sb 5707 fs/xfs/xfs_log_recover.c if (XFS_SB_VERSION_NUM(&log->l_mp->m_sb) == XFS_SB_VERSION_5 && m_sb 5708 fs/xfs/xfs_log_recover.c xfs_sb_has_incompat_log_feature(&log->l_mp->m_sb, m_sb 5712 fs/xfs/xfs_log_recover.c (log->l_mp->m_sb.sb_features_log_incompat & m_sb 5826 fs/xfs/xfs_log_recover.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 58 fs/xfs/xfs_mount.c uuid_t *uuid = &mp->m_sb.sb_uuid; m_sb 103 fs/xfs/xfs_mount.c uuid_t *uuid = &mp->m_sb.sb_uuid; m_sb 143 fs/xfs/xfs_mount.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 273 fs/xfs/xfs_mount.c struct xfs_sb *sbp = &mp->m_sb; m_sb 368 fs/xfs/xfs_mount.c xfs_sb_t *sbp = &(mp->m_sb); m_sb 420 fs/xfs/xfs_mount.c xfs_sb_version_hasdalign(&mp->m_sb)) { m_sb 437 fs/xfs/xfs_mount.c xfs_sb_t *sbp = &(mp->m_sb); m_sb 477 fs/xfs/xfs_mount.c uint64_t space = mp->m_sb.sb_dblocks; m_sb 495 fs/xfs/xfs_mount.c d = (xfs_daddr_t)XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks); m_sb 496 fs/xfs/xfs_mount.c if (XFS_BB_TO_FSB(mp, d) != mp->m_sb.sb_dblocks) { m_sb 512 fs/xfs/xfs_mount.c d = (xfs_daddr_t)XFS_FSB_TO_BB(mp, mp->m_sb.sb_logblocks); m_sb 513 fs/xfs/xfs_mount.c if (XFS_BB_TO_FSB(mp, d) != mp->m_sb.sb_logblocks) { m_sb 538 fs/xfs/xfs_mount.c if (mp->m_sb.sb_qflags == 0) m_sb 541 fs/xfs/xfs_mount.c mp->m_sb.sb_qflags = 0; m_sb 562 fs/xfs/xfs_mount.c resblks = mp->m_sb.sb_dblocks; m_sb 577 fs/xfs/xfs_mount.c if (mp->m_sb.sb_inprogress) { m_sb 595 fs/xfs/xfs_mount.c (mp->m_sb.sb_fdblocks > mp->m_sb.sb_dblocks || m_sb 596 fs/xfs/xfs_mount.c !xfs_verify_icount(mp, mp->m_sb.sb_icount) || m_sb 597 fs/xfs/xfs_mount.c mp->m_sb.sb_ifree > mp->m_sb.sb_icount)) m_sb 611 fs/xfs/xfs_mount.c if ((!xfs_sb_version_haslazysbcount(&mp->m_sb) || m_sb 616 fs/xfs/xfs_mount.c return xfs_initialize_perag_data(mp, mp->m_sb.sb_agcount); m_sb 633 fs/xfs/xfs_mount.c struct xfs_sb *sbp = &(mp->m_sb); m_sb 668 fs/xfs/xfs_mount.c if (xfs_sb_version_hasattr2(&mp->m_sb) && m_sb 673 fs/xfs/xfs_mount.c if (xfs_sb_version_hasattr2(&mp->m_sb) && m_sb 675 fs/xfs/xfs_mount.c xfs_sb_version_removeattr2(&mp->m_sb); m_sb 684 fs/xfs/xfs_mount.c if (!(mp->m_sb.sb_versionnum & XFS_SB_VERSION_NLINKBIT)) { m_sb 685 fs/xfs/xfs_mount.c mp->m_sb.sb_versionnum |= XFS_SB_VERSION_NLINKBIT; m_sb 743 fs/xfs/xfs_mount.c if (xfs_sb_version_hassparseinodes(&mp->m_sb) && m_sb 744 fs/xfs/xfs_mount.c mp->m_sb.sb_spino_align != m_sb 748 fs/xfs/xfs_mount.c mp->m_sb.sb_spino_align, m_sb 892 fs/xfs/xfs_mount.c if (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_ACCT) { m_sb 1160 fs/xfs/xfs_mount.c if (!xfs_sb_version_haslazysbcount(&mp->m_sb)) m_sb 1295 fs/xfs/xfs_mount.c lcounter = mp->m_sb.sb_frextents + delta; m_sb 1299 fs/xfs/xfs_mount.c mp->m_sb.sb_frextents = lcounter; m_sb 1359 fs/xfs/xfs_mount.c if (!xfs_sb_version_haslazysbcount(&mp->m_sb)) m_sb 79 fs/xfs/xfs_mount.h struct xfs_sb m_sb; /* copy of fs superblock */ m_sb 288 fs/xfs/xfs_mount.h (mp->m_swidth << mp->m_sb.sb_blocklog) : m_sb 318 fs/xfs/xfs_mount.h do_div(ld, mp->m_sb.sb_agblocks); m_sb 326 fs/xfs/xfs_mount.h return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); m_sb 67 fs/xfs/xfs_pnfs.c memcpy(buf, &mp->m_sb.sb_uuid, sizeof(uuid_t)); m_sb 302 fs/xfs/xfs_qm.c if (xfs_is_quota_inode(&mp->m_sb, ip->i_ino)) m_sb 390 fs/xfs/xfs_qm.c ASSERT(!xfs_is_quota_inode(&ip->i_mount->m_sb, ip->i_ino)); m_sb 671 fs/xfs/xfs_qm.c mp->m_qflags |= (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_CHKD); m_sb 750 fs/xfs/xfs_qm.c if (!xfs_sb_version_has_pquotino(&mp->m_sb) && m_sb 755 fs/xfs/xfs_qm.c (mp->m_sb.sb_gquotino != NULLFSINO)) { m_sb 756 fs/xfs/xfs_qm.c ino = mp->m_sb.sb_gquotino; m_sb 757 fs/xfs/xfs_qm.c ASSERT(mp->m_sb.sb_pquotino == NULLFSINO); m_sb 759 fs/xfs/xfs_qm.c (mp->m_sb.sb_pquotino != NULLFSINO)) { m_sb 760 fs/xfs/xfs_qm.c ino = mp->m_sb.sb_pquotino; m_sb 761 fs/xfs/xfs_qm.c ASSERT(mp->m_sb.sb_gquotino == NULLFSINO); m_sb 767 fs/xfs/xfs_qm.c mp->m_sb.sb_gquotino = NULLFSINO; m_sb 768 fs/xfs/xfs_qm.c mp->m_sb.sb_pquotino = NULLFSINO; m_sb 793 fs/xfs/xfs_qm.c ASSERT(!xfs_sb_version_hasquota(&mp->m_sb)); m_sb 795 fs/xfs/xfs_qm.c xfs_sb_version_addquota(&mp->m_sb); m_sb 796 fs/xfs/xfs_qm.c mp->m_sb.sb_uquotino = NULLFSINO; m_sb 797 fs/xfs/xfs_qm.c mp->m_sb.sb_gquotino = NULLFSINO; m_sb 798 fs/xfs/xfs_qm.c mp->m_sb.sb_pquotino = NULLFSINO; m_sb 801 fs/xfs/xfs_qm.c mp->m_sb.sb_qflags = mp->m_qflags & XFS_ALL_QUOTA_ACCT; m_sb 804 fs/xfs/xfs_qm.c mp->m_sb.sb_uquotino = (*ip)->i_ino; m_sb 806 fs/xfs/xfs_qm.c mp->m_sb.sb_gquotino = (*ip)->i_ino; m_sb 808 fs/xfs/xfs_qm.c mp->m_sb.sb_pquotino = (*ip)->i_ino; m_sb 876 fs/xfs/xfs_qm.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 1133 fs/xfs/xfs_qm.c if (xfs_is_quota_inode(&mp->m_sb, ino)) m_sb 1394 fs/xfs/xfs_qm.c if (mp->m_sb.sb_rextents) { m_sb 1443 fs/xfs/xfs_qm.c sbf = mp->m_sb.sb_qflags; m_sb 1444 fs/xfs/xfs_qm.c mp->m_sb.sb_qflags = mp->m_qflags & XFS_MOUNT_QUOTA_ALL; m_sb 1486 fs/xfs/xfs_qm.c if (xfs_sb_version_hasquota(&mp->m_sb)) { m_sb 1488 fs/xfs/xfs_qm.c mp->m_sb.sb_uquotino != NULLFSINO) { m_sb 1489 fs/xfs/xfs_qm.c ASSERT(mp->m_sb.sb_uquotino > 0); m_sb 1490 fs/xfs/xfs_qm.c error = xfs_iget(mp, NULL, mp->m_sb.sb_uquotino, m_sb 1496 fs/xfs/xfs_qm.c mp->m_sb.sb_gquotino != NULLFSINO) { m_sb 1497 fs/xfs/xfs_qm.c ASSERT(mp->m_sb.sb_gquotino > 0); m_sb 1498 fs/xfs/xfs_qm.c error = xfs_iget(mp, NULL, mp->m_sb.sb_gquotino, m_sb 1504 fs/xfs/xfs_qm.c mp->m_sb.sb_pquotino != NULLFSINO) { m_sb 1505 fs/xfs/xfs_qm.c ASSERT(mp->m_sb.sb_pquotino > 0); m_sb 1506 fs/xfs/xfs_qm.c error = xfs_iget(mp, NULL, mp->m_sb.sb_pquotino, m_sb 78 fs/xfs/xfs_qm_bhv.c quotaondisk = xfs_sb_version_hasquota(&mp->m_sb) && m_sb 79 fs/xfs/xfs_qm_bhv.c (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_ACCT); m_sb 82 fs/xfs/xfs_qm_bhv.c uquotaondisk = mp->m_sb.sb_qflags & XFS_UQUOTA_ACCT; m_sb 83 fs/xfs/xfs_qm_bhv.c pquotaondisk = mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT; m_sb 84 fs/xfs/xfs_qm_bhv.c gquotaondisk = mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT; m_sb 72 fs/xfs/xfs_qm_syscalls.c mp->m_sb.sb_qflags = mp->m_qflags; m_sb 260 fs/xfs/xfs_qm_syscalls.c if (!xfs_sb_version_hasquota(&mp->m_sb) || flags == 0 || m_sb 268 fs/xfs/xfs_qm_syscalls.c error = xfs_qm_scall_trunc_qfile(mp, mp->m_sb.sb_uquotino); m_sb 273 fs/xfs/xfs_qm_syscalls.c error = xfs_qm_scall_trunc_qfile(mp, mp->m_sb.sb_gquotino); m_sb 278 fs/xfs/xfs_qm_syscalls.c error = xfs_qm_scall_trunc_qfile(mp, mp->m_sb.sb_pquotino); m_sb 313 fs/xfs/xfs_qm_syscalls.c if (((mp->m_sb.sb_qflags & XFS_UQUOTA_ACCT) == 0 && m_sb 315 fs/xfs/xfs_qm_syscalls.c ((mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT) == 0 && m_sb 317 fs/xfs/xfs_qm_syscalls.c ((mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT) == 0 && m_sb 321 fs/xfs/xfs_qm_syscalls.c __func__, flags, mp->m_sb.sb_qflags); m_sb 335 fs/xfs/xfs_qm_syscalls.c qf = mp->m_sb.sb_qflags; m_sb 336 fs/xfs/xfs_qm_syscalls.c mp->m_sb.sb_qflags = qf | flags; m_sb 351 fs/xfs/xfs_qm_syscalls.c if (((mp->m_sb.sb_qflags & XFS_UQUOTA_ACCT) != m_sb 353 fs/xfs/xfs_qm_syscalls.c ((mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT) != m_sb 355 fs/xfs/xfs_qm_syscalls.c ((mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT) != m_sb 589 fs/xfs/xfs_qm_syscalls.c mp->m_sb.sb_qflags = (mp->m_qflags & ~(flags)) & XFS_MOUNT_QUOTA_ALL; m_sb 33 fs/xfs/xfs_quota.h (mp->m_sb.sb_qflags & XFS_UQUOTA_CHKD) == 0) || \ m_sb 35 fs/xfs/xfs_quota.h (mp->m_sb.sb_qflags & XFS_GQUOTA_CHKD) == 0) || \ m_sb 37 fs/xfs/xfs_quota.h (mp->m_sb.sb_qflags & XFS_PQUOTA_CHKD) == 0)) m_sb 80 fs/xfs/xfs_quotaops.c mp->m_sb.sb_uquotino); m_sb 82 fs/xfs/xfs_quotaops.c mp->m_sb.sb_gquotino); m_sb 84 fs/xfs/xfs_quotaops.c mp->m_sb.sb_pquotino); m_sb 491 fs/xfs/xfs_refcount_item.c startblock_fsb >= mp->m_sb.sb_dblocks || m_sb 492 fs/xfs/xfs_refcount_item.c refc->pe_len >= mp->m_sb.sb_agblocks || m_sb 771 fs/xfs/xfs_reflink.c if (!xfs_sb_version_hasreflink(&mp->m_sb)) m_sb 774 fs/xfs/xfs_reflink.c for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { m_sb 977 fs/xfs/xfs_reflink.c if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) m_sb 12 fs/xfs/xfs_reflink.h xfs_sb_version_hasreflink(&ip->i_mount->m_sb); m_sb 533 fs/xfs/xfs_rmap_item.c startblock_fsb >= mp->m_sb.sb_dblocks || m_sb 534 fs/xfs/xfs_rmap_item.c rmap->me_len >= mp->m_sb.sb_agblocks || m_sb 115 fs/xfs/xfs_rtalloc.c for (bbno = omp->m_sb.sb_rbmblocks - 1; m_sb 168 fs/xfs/xfs_rtalloc.c error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1, m_sb 443 fs/xfs/xfs_rtalloc.c if (bno >= mp->m_sb.sb_rextents) m_sb 444 fs/xfs/xfs_rtalloc.c bno = mp->m_sb.sb_rextents - 1; m_sb 582 fs/xfs/xfs_rtalloc.c else if (i > 0 && (int)bbno + i < mp->m_sb.sb_rbmblocks - 1) m_sb 588 fs/xfs/xfs_rtalloc.c else if (i <= 0 && (int)bbno - i < mp->m_sb.sb_rbmblocks - 1) m_sb 644 fs/xfs/xfs_rtalloc.c for (i = 0; i < mp->m_sb.sb_rbmblocks; i++) { m_sb 703 fs/xfs/xfs_rtalloc.c for (i = 0; i < mp->m_sb.sb_rbmblocks; i++) { m_sb 836 fs/xfs/xfs_rtalloc.c memset(bp->b_addr, 0, mp->m_sb.sb_blocksize); m_sb 837 fs/xfs/xfs_rtalloc.c xfs_trans_log_buf(tp, bp, 0, mp->m_sb.sb_blocksize - 1); m_sb 903 fs/xfs/xfs_rtalloc.c sbp = &mp->m_sb; m_sb 941 fs/xfs/xfs_rtalloc.c if (nrsumblocks > (mp->m_sb.sb_logblocks >> 1)) m_sb 980 fs/xfs/xfs_rtalloc.c nsbp = &nmp->m_sb; m_sb 1191 fs/xfs/xfs_rtalloc.c sbp = &mp->m_sb; m_sb 1208 fs/xfs/xfs_rtalloc.c d = (xfs_daddr_t)XFS_FSB_TO_BB(mp, mp->m_sb.sb_rblocks); m_sb 1209 fs/xfs/xfs_rtalloc.c if (XFS_BB_TO_FSB(mp, d) != mp->m_sb.sb_rblocks) { m_sb 1212 fs/xfs/xfs_rtalloc.c (unsigned long long) mp->m_sb.sb_rblocks); m_sb 1237 fs/xfs/xfs_rtalloc.c sbp = &mp->m_sb; m_sb 1296 fs/xfs/xfs_rtalloc.c b = (mp->m_sb.sb_rextents * ((resid << 1) + 1ULL)) >> m_sb 1298 fs/xfs/xfs_rtalloc.c if (b >= mp->m_sb.sb_rextents) m_sb 1299 fs/xfs/xfs_rtalloc.c div64_u64_rem(b, mp->m_sb.sb_rextents, &b); m_sb 1300 fs/xfs/xfs_rtalloc.c if (b + len > mp->m_sb.sb_rextents) m_sb 1301 fs/xfs/xfs_rtalloc.c b = mp->m_sb.sb_rextents - len; m_sb 152 fs/xfs/xfs_rtalloc.h if (mp->m_sb.sb_rblocks == 0) m_sb 158 fs/xfs/xfs_rtalloc.h # define xfs_rtmount_inodes(m) (((mp)->m_sb.sb_rblocks == 0)? 0 : (ENOSYS)) m_sb 563 fs/xfs/xfs_super.c xfs_sb_t *sbp = &mp->m_sb; m_sb 782 fs/xfs/xfs_super.c error = xfs_setsize_buftarg(mp->m_ddev_targp, mp->m_sb.sb_sectsize); m_sb 789 fs/xfs/xfs_super.c if (xfs_sb_version_hassector(&mp->m_sb)) m_sb 790 fs/xfs/xfs_super.c log_sector_size = mp->m_sb.sb_logsectsize; m_sb 798 fs/xfs/xfs_super.c mp->m_sb.sb_sectsize); m_sb 1082 fs/xfs/xfs_super.c xfs_sb_t *sbp = &mp->m_sb; m_sb 1235 fs/xfs/xfs_super.c xfs_sb_t *sbp = &mp->m_sb; m_sb 1433 fs/xfs/xfs_super.c if (xfs_sb_version_haslogv2(&mp->m_sb)) { m_sb 1435 fs/xfs/xfs_super.c mp->m_sb.sb_logsunit > XLOG_BIG_RECORD_BSIZE) { m_sb 1436 fs/xfs/xfs_super.c mp->m_logbsize = mp->m_sb.sb_logsunit; m_sb 1438 fs/xfs/xfs_super.c mp->m_logbsize < mp->m_sb.sb_logsunit) { m_sb 1455 fs/xfs/xfs_super.c if (xfs_sb_version_hascrc(&mp->m_sb) && m_sb 1466 fs/xfs/xfs_super.c if (xfs_sb_version_hasattr2(&mp->m_sb) && m_sb 1473 fs/xfs/xfs_super.c if ((mp->m_sb.sb_flags & XFS_SBF_READONLY) && !ronly) { m_sb 1481 fs/xfs/xfs_super.c !xfs_sb_version_has_pquotino(&mp->m_sb)) { m_sb 1527 fs/xfs/xfs_super.c percpu_counter_set(&mp->m_icount, mp->m_sb.sb_icount); m_sb 1528 fs/xfs/xfs_super.c percpu_counter_set(&mp->m_ifree, mp->m_sb.sb_ifree); m_sb 1529 fs/xfs/xfs_super.c percpu_counter_set(&mp->m_fdblocks, mp->m_sb.sb_fdblocks); m_sb 1662 fs/xfs/xfs_super.c sb->s_blocksize = mp->m_sb.sb_blocksize; m_sb 1674 fs/xfs/xfs_super.c if (XFS_SB_VERSION_NUM(&mp->m_sb) == XFS_SB_VERSION_5) m_sb 1693 fs/xfs/xfs_super.c if (xfs_sb_version_hasreflink(&mp->m_sb)) { m_sb 1711 fs/xfs/xfs_super.c if (xfs_sb_version_hasreflink(&mp->m_sb)) { m_sb 1712 fs/xfs/xfs_super.c if (mp->m_sb.sb_rblocks) { m_sb 1725 fs/xfs/xfs_super.c if (xfs_sb_version_hasrmapbt(&mp->m_sb) && mp->m_sb.sb_rblocks) { m_sb 74 fs/xfs/xfs_symlink.c if (xfs_sb_version_hascrc(&mp->m_sb)) { m_sb 348 fs/xfs/xfs_trans.c if (xfs_sb_version_haslazysbcount(&mp->m_sb)) m_sb 353 fs/xfs/xfs_trans.c if (xfs_sb_version_haslazysbcount(&mp->m_sb)) m_sb 368 fs/xfs/xfs_trans.c if (xfs_sb_version_haslazysbcount(&mp->m_sb)) m_sb 378 fs/xfs/xfs_trans.c if (xfs_sb_version_haslazysbcount(&mp->m_sb)) m_sb 465 fs/xfs/xfs_trans.c if (!xfs_sb_version_haslazysbcount(&(tp->t_mountp->m_sb))) { m_sb 606 fs/xfs/xfs_trans.c (xfs_sb_version_haslazysbcount(&mp->m_sb) || m_sb 616 fs/xfs/xfs_trans.c if (xfs_sb_version_haslazysbcount(&mp->m_sb) || m_sb 647 fs/xfs/xfs_trans.c error = xfs_sb_mod64(&mp->m_sb.sb_frextents, rtxdelta); m_sb 653 fs/xfs/xfs_trans.c error = xfs_sb_mod64(&mp->m_sb.sb_dblocks, tp->t_dblocks_delta); m_sb 658 fs/xfs/xfs_trans.c error = xfs_sb_mod32(&mp->m_sb.sb_agcount, tp->t_agcount_delta); m_sb 663 fs/xfs/xfs_trans.c error = xfs_sb_mod8(&mp->m_sb.sb_imax_pct, tp->t_imaxpct_delta); m_sb 668 fs/xfs/xfs_trans.c error = xfs_sb_mod32(&mp->m_sb.sb_rextsize, m_sb 674 fs/xfs/xfs_trans.c error = xfs_sb_mod32(&mp->m_sb.sb_rbmblocks, m_sb 680 fs/xfs/xfs_trans.c error = xfs_sb_mod64(&mp->m_sb.sb_rblocks, tp->t_rblocks_delta); m_sb 685 fs/xfs/xfs_trans.c error = xfs_sb_mod64(&mp->m_sb.sb_rextents, m_sb 691 fs/xfs/xfs_trans.c error = xfs_sb_mod8(&mp->m_sb.sb_rextslog, m_sb 701 fs/xfs/xfs_trans.c xfs_sb_mod64(&mp->m_sb.sb_rextents, -tp->t_rextents_delta); m_sb 704 fs/xfs/xfs_trans.c xfs_sb_mod64(&mp->m_sb.sb_rblocks, -tp->t_rblocks_delta); m_sb 707 fs/xfs/xfs_trans.c xfs_sb_mod32(&mp->m_sb.sb_rbmblocks, -tp->t_rbmblocks_delta); m_sb 710 fs/xfs/xfs_trans.c xfs_sb_mod32(&mp->m_sb.sb_rextsize, -tp->t_rextsize_delta); m_sb 713 fs/xfs/xfs_trans.c xfs_sb_mod8(&mp->m_sb.sb_imax_pct, -tp->t_imaxpct_delta); m_sb 716 fs/xfs/xfs_trans.c xfs_sb_mod32(&mp->m_sb.sb_agcount, -tp->t_agcount_delta); m_sb 719 fs/xfs/xfs_trans.c xfs_sb_mod64(&mp->m_sb.sb_dblocks, -tp->t_dblocks_delta); m_sb 722 fs/xfs/xfs_trans.c xfs_sb_mod64(&mp->m_sb.sb_frextents, -rtxdelta); m_sb 136 fs/xfs/xfs_trans_dquot.c xfs_is_quota_inode(&mp->m_sb, ip->i_ino)) m_sb 807 fs/xfs/xfs_trans_dquot.c ASSERT(!xfs_is_quota_inode(&mp->m_sb, ip->i_ino));