Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:fs

30 errcode_t ext2fs_get_num_dirs(ext2_filsys fs, ext2_ino_t *ret_num_dirs)
35 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
38 max_dirs = fs->super->s_inodes_per_group;
39 for (i = 0; i < fs->group_desc_count; i++) {
40 if (fs->group_desc[i].bg_used_dirs_count > max_dirs)
43 num_dirs += fs->group_desc[i].bg_used_dirs_count;
45 if (num_dirs > fs->super->s_inodes_count)
46 num_dirs = fs->super->s_inodes_count;
57 static errcode_t make_dblist(ext2_filsys fs, ext2_ino_t size, ext2_ino_t count,
65 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
67 if ((ret_dblist == 0) && fs->dblist &&
68 (fs->dblist->magic == EXT2_ET_MAGIC_DBLIST))
77 dblist->fs = fs;
81 retval = ext2fs_get_num_dirs(fs, &dblist->size);
100 fs->dblist = dblist;
111 errcode_t ext2fs_init_dblist(ext2_filsys fs, ext2_dblist *ret_dblist)
116 retval = make_dblist(fs, 0, 0, 0, &dblist);
124 fs->dblist = dblist;
137 retval = make_dblist(src->fs, src->size, src->count, src->list,
222 int (*func)(ext2_filsys fs,
235 ret = (*func)(dblist->fs, &dblist->list[(int)i], priv_data);