Lines Matching refs:bh
31 static inline sysv_zone_t *get_chunk(struct super_block *sb, struct buffer_head *bh)
33 char *bh_data = bh->b_data;
46 struct buffer_head * bh;
78 bh = sb_getblk(sb, block);
79 if (!bh) {
84 memset(bh->b_data, 0, sb->s_blocksize);
85 *(__fs16*)bh->b_data = cpu_to_fs16(sbi, count);
86 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t));
87 mark_buffer_dirty(bh);
88 set_buffer_uptodate(bh);
89 brelse(bh);
105 struct buffer_head * bh;
131 if (!(bh = sb_bread(sb, block))) {
137 count = fs16_to_cpu(sbi, *(__fs16*)bh->b_data);
140 brelse(bh);
144 memcpy(sbi->s_bcache, get_chunk(sb, bh),
146 brelse(bh);
164 struct buffer_head * bh = NULL;
198 if (bh)
199 brelse(bh);
204 bh = sb_bread(sb, block);
205 if (!bh)
207 n = fs16_to_cpu(sbi, *(__fs16*)bh->b_data);
208 blocks = get_chunk(sb, bh);
210 if (bh)
211 brelse(bh);
227 if (bh)
228 brelse(bh);