Lines Matching refs:sb
8 unsigned long omfs_count_free(struct super_block *sb)
12 struct omfs_sb_info *sbi = OMFS_SB(sb);
13 int nbits = sb->s_blocksize * 8;
48 static int set_run(struct super_block *sb, int map,
54 struct omfs_sb_info *sbi = OMFS_SB(sb);
57 bh = sb_bread(sb, clus_to_blk(sbi, sbi->s_bitmap_ino) + map);
68 bh = sb_bread(sb,
91 int omfs_allocate_block(struct super_block *sb, u64 block)
94 struct omfs_sb_info *sbi = OMFS_SB(sb);
95 int bits_per_entry = 8 * sb->s_blocksize;
109 bh = sb_bread(sb, clus_to_blk(sbi, sbi->s_bitmap_ino) + map);
130 int omfs_allocate_range(struct super_block *sb,
136 struct omfs_sb_info *sbi = OMFS_SB(sb);
137 int bits_per_entry = 8 * sb->s_blocksize;
165 ret = set_run(sb, i, bits_per_entry, bit, run, 1);
175 int omfs_clear_range(struct super_block *sb, u64 block, int count)
177 struct omfs_sb_info *sbi = OMFS_SB(sb);
178 int bits_per_entry = 8 * sb->s_blocksize;
191 ret = set_run(sb, map, bits_per_entry, bit, count, 0);