Lines Matching defs:sb
28 sb->sv_sbd2->s_tfree = *sb->sv_free_blocks
31 static inline sysv_zone_t *get_chunk(struct super_block *sb, struct buffer_head *bh)
35 if (SYSV_SB(sb)->s_type == FSTYPE_SYSV4)
43 void sysv_free_block(struct super_block * sb, sysv_zone_t nr)
45 struct sysv_sb_info * sbi = SYSV_SB(sb);
78 bh = sb_getblk(sb, block);
84 memset(bh->b_data, 0, sb->s_blocksize);
86 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t));
96 dirty_sb(sb);
100 sysv_zone_t sysv_new_block(struct super_block * sb)
102 struct sysv_sb_info *sbi = SYSV_SB(sb);
131 if (!(bh = sb_bread(sb, block))) {
144 memcpy(sbi->s_bcache, get_chunk(sb, bh),
150 dirty_sb(sb);
159 unsigned long sysv_count_free_blocks(struct super_block * sb)
161 struct sysv_sb_info * sbi = SYSV_SB(sb);
204 bh = sb_bread(sb, block);
208 blocks = get_chunk(sb, bh);
235 if (!sb_rdonly(sb)) {
237 dirty_sb(sb);