Lines Matching refs:s_blocksize

195 	sb->s_blocksize = 1UL << layout->blocksize_bits;  in mbt_init_sb_layout()
222 mb_set_bits(grp_ctx->bitmap_bh.b_data, max, sb->s_blocksize * 8 - max); in mbt_grp_ctx_init()
569 memset(bitmap, 0, sb->s_blocksize); in test_mark_diskspace_used_range()
613 memset(buddy, 0xff, sb->s_blocksize); in mbt_generate_buddy()
709 memset(ext4_buddy, 0xff, sb->s_blocksize); in do_test_generate_buddy()
713 KUNIT_ASSERT_EQ(test, memcmp(mbt_buddy, ext4_buddy, sb->s_blocksize), in do_test_generate_buddy()
726 bitmap = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_generate_buddy()
728 expected_bb = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_generate_buddy()
730 generate_bb = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_generate_buddy()
770 memset(buddy, 0xff, sb->s_blocksize); in test_mb_mark_used_range()
775 KUNIT_ASSERT_EQ(test, memcmp(buddy, e4b->bd_buddy, sb->s_blocksize), in test_mb_mark_used_range()
791 if (sb->s_blocksize > PAGE_SIZE) in test_mb_mark_used()
794 bitmap = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_mark_used()
796 buddy = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_mark_used()
835 memset(buddy, 0xff, sb->s_blocksize); in test_mb_free_blocks_range()
840 KUNIT_ASSERT_EQ(test, memcmp(buddy, e4b->bd_buddy, sb->s_blocksize), in test_mb_free_blocks_range()
858 if (sb->s_blocksize > PAGE_SIZE) in test_mb_free_blocks()
861 bitmap = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_free_blocks()
863 buddy = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_free_blocks()
883 memset(bitmap, 0xff, sb->s_blocksize); in test_mb_free_blocks()
905 if (sb->s_blocksize > PAGE_SIZE) in test_mb_mark_used_cost()