Lines Matching refs:fs
22 void ext2fs_free(ext2_filsys fs)
24 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS))
26 if (fs->image_io != fs->io) {
27 if (fs->image_io)
28 io_channel_close(fs->image_io);
30 if (fs->io) {
31 io_channel_close(fs->io);
33 if (fs->device_name)
34 ext2fs_free_mem(&fs->device_name);
35 if (fs->super)
36 ext2fs_free_mem(&fs->super);
37 if (fs->orig_super)
38 ext2fs_free_mem(&fs->orig_super);
39 if (fs->group_desc)
40 ext2fs_free_mem(&fs->group_desc);
41 if (fs->block_map)
42 ext2fs_free_block_bitmap(fs->block_map);
43 if (fs->inode_map)
44 ext2fs_free_inode_bitmap(fs->inode_map);
45 if (fs->image_header)
46 ext2fs_free_mem(&fs->image_header);
48 if (fs->badblocks)
49 ext2fs_badblocks_list_free(fs->badblocks);
50 fs->badblocks = 0;
52 if (fs->dblist)
53 ext2fs_free_dblist(fs->dblist);
55 if (fs->icache)
56 ext2fs_free_inode_cache(fs->icache);
58 if (fs->mmp_buf)
59 ext2fs_free_mem(&fs->mmp_buf);
60 if (fs->mmp_cmp)
61 ext2fs_free_mem(&fs->mmp_cmp);
63 fs->magic = 0;
65 ext2fs_free_mem(&fs);
114 if (dblist->fs && dblist->fs->dblist == dblist)
115 dblist->fs->dblist = 0;