int btrfs_test_inodes(void) { int ret; set_bit(EXTENT_FLAG_COMPRESSED, &compressed_only); set_bit(EXTENT_FLAG_VACANCY, &vacancy_only); set_bit(EXTENT_FLAG_PREALLOC, &prealloc_only); test_msg("Running btrfs_get_extent tests\n"); ret = test_btrfs_get_extent(); if (ret) return ret; test_msg("Running hole first btrfs_get_extent test\n"); return test_hole_first(); }
int btrfs_test_inodes(u32 sectorsize, u32 nodesize) { int ret; set_bit(EXTENT_FLAG_COMPRESSED, &compressed_only); set_bit(EXTENT_FLAG_PREALLOC, &prealloc_only); test_msg("Running btrfs_get_extent tests\n"); ret = test_btrfs_get_extent(sectorsize, nodesize); if (ret) return ret; test_msg("Running hole first btrfs_get_extent test\n"); ret = test_hole_first(sectorsize, nodesize); if (ret) return ret; test_msg("Running outstanding_extents tests\n"); return test_extent_accounting(sectorsize, nodesize); }