Searched refs:num_dirs (Results 1 – 5 of 5) sorted by relevance
33 ext2_ino_t num_dirs, max_dirs; in ext2fs_get_num_dirs() local37 num_dirs = 0; in ext2fs_get_num_dirs()41 num_dirs += max_dirs / 8; in ext2fs_get_num_dirs()43 num_dirs += fs->group_desc[i].bg_used_dirs_count; in ext2fs_get_num_dirs()45 if (num_dirs > fs->super->s_inodes_count) in ext2fs_get_num_dirs()46 num_dirs = fs->super->s_inodes_count; in ext2fs_get_num_dirs()48 *ret_num_dirs = num_dirs; in ext2fs_get_num_dirs()
39 static void setup_tdb(e2fsck_t ctx, ext2_ino_t num_dirs) in setup_tdb() argument55 (threshold && num_dirs <= threshold)) in setup_tdb()73 ext2_ino_t num_dirs; in setup_db() local84 retval = ext2fs_get_num_dirs(ctx->fs, &num_dirs); in setup_db()86 num_dirs = 1024; /* Guess */ in setup_db()88 setup_tdb(ctx, num_dirs); in setup_db()97 db->size = num_dirs + 10; in setup_db()
439 ext2_ino_t num_dirs; in e2fsck_setup_tdb_icount() local453 retval = ext2fs_get_num_dirs(ctx->fs, &num_dirs); in e2fsck_setup_tdb_icount()455 num_dirs = 1024; /* Guess */ in e2fsck_setup_tdb_icount()458 (threshold && num_dirs <= threshold)) in e2fsck_setup_tdb_icount()
84 int num_dirs;