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