Lines Matching refs:bh

178 static int detect_xenix(struct sysv_sb_info *sbi, struct buffer_head *bh)  in detect_xenix()  argument
180 struct xenix_super_block *sbd = (struct xenix_super_block *)bh->b_data; in detect_xenix()
199 static int detect_sysv(struct sysv_sb_info *sbi, struct buffer_head *bh) in detect_sysv() argument
206 sbd = (struct sysv4_super_block *) (bh->b_data + BLOCK_SIZE/2); in detect_sysv()
252 static int detect_coherent(struct sysv_sb_info *sbi, struct buffer_head *bh) in detect_coherent() argument
256 sbd = (struct coh_super_block *) (bh->b_data + BLOCK_SIZE/2); in detect_coherent()
265 static int detect_sysv_odd(struct sysv_sb_info *sbi, struct buffer_head *bh) in detect_sysv_odd() argument
267 int size = detect_sysv(sbi, bh); in detect_sysv_odd()
354 struct buffer_head *bh1, *bh = NULL; in sysv_fill_super() local
377 brelse(bh); in sysv_fill_super()
378 bh = sb_bread(sb, flavours[i].block); in sysv_fill_super()
379 if (!bh) in sysv_fill_super()
381 size = flavours[i].test(SYSV_SB(sb), bh); in sysv_fill_super()
389 blocknr = bh->b_blocknr << 1; in sysv_fill_super()
390 brelse(bh); in sysv_fill_super()
393 bh = sb_bread(sb, blocknr + 1); in sysv_fill_super()
396 bh1 = bh; in sysv_fill_super()
399 blocknr = bh->b_blocknr >> 1; in sysv_fill_super()
400 brelse(bh); in sysv_fill_super()
402 bh1 = bh = sb_bread(sb, blocknr); in sysv_fill_super()
408 if (bh && bh1) { in sysv_fill_super()
410 sbi->s_bh2 = bh; in sysv_fill_super()
416 brelse(bh); in sysv_fill_super()
424 brelse(bh); in sysv_fill_super()
430 brelse(bh); in sysv_fill_super()
437 static int v7_sanity_check(struct super_block *sb, struct buffer_head *bh) in v7_sanity_check() argument
447 v7sb = (struct v7_super_block *) bh->b_data; in v7_sanity_check()
476 struct buffer_head *bh; in v7_fill_super() local
495 if ((bh = sb_bread(sb, 1)) == NULL) { in v7_fill_super()
504 if (v7_sanity_check(sb, bh)) in v7_fill_super()
509 if (v7_sanity_check(sb, bh)) in v7_fill_super()
515 sbi->s_bh1 = bh; in v7_fill_super()
516 sbi->s_bh2 = bh; in v7_fill_super()
523 brelse(bh); in v7_fill_super()