Lines Matching refs:fs
18 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino,
21 int group = ext2fs_group_of_ino(fs, ino);
24 ext2fs_mark_inode_bitmap(fs->inode_map, ino);
26 ext2fs_unmark_inode_bitmap(fs->inode_map, ino);
27 fs->group_desc[group].bg_free_inodes_count -= inuse;
29 fs->group_desc[group].bg_used_dirs_count += inuse;
30 fs->super->s_free_inodes_count -= inuse;
31 ext2fs_mark_super_dirty(fs);
32 ext2fs_mark_ib_dirty(fs);
35 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_t ino, int inuse)
37 ext2fs_inode_alloc_stats2(fs, ino, inuse, 0);
40 void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse)
42 int group = ext2fs_group_of_blk(fs, blk);
45 ext2fs_mark_block_bitmap(fs->block_map, blk);
47 ext2fs_unmark_block_bitmap(fs->block_map, blk);
48 fs->group_desc[group].bg_free_blocks_count -= inuse;
49 fs->super->s_free_blocks_count -= inuse;
50 ext2fs_mark_super_dirty(fs);
51 ext2fs_mark_bb_dirty(fs);