Lines Matching refs:bh_sum
184 struct buffer_head *bh_sum; in nilfs_read_log_header() local
186 bh_sum = __bread(nilfs->ns_bdev, start_blocknr, nilfs->ns_blocksize); in nilfs_read_log_header()
187 if (bh_sum) in nilfs_read_log_header()
188 *sum = (struct nilfs_segment_summary *)bh_sum->b_data; in nilfs_read_log_header()
189 return bh_sum; in nilfs_read_log_header()
200 struct buffer_head *bh_sum, in nilfs_validate_log() argument
222 if (nilfs_compute_checksum(nilfs, bh_sum, &crc, sizeof(sum->ss_datasum), in nilfs_validate_log()
224 bh_sum->b_blocknr, nblock)) in nilfs_validate_log()
573 struct buffer_head *bh_sum = NULL; in nilfs_do_roll_forward() local
596 brelse(bh_sum); in nilfs_do_roll_forward()
597 bh_sum = nilfs_read_log_header(nilfs, pseg_start, &sum); in nilfs_do_roll_forward()
598 if (!bh_sum) { in nilfs_do_roll_forward()
603 ret = nilfs_validate_log(nilfs, seg_seq, bh_sum, sum); in nilfs_do_roll_forward()
677 brelse(bh_sum); in nilfs_do_roll_forward()
801 struct buffer_head *bh_sum = NULL; in nilfs_search_super_root() local
829 brelse(bh_sum); in nilfs_search_super_root()
831 bh_sum = nilfs_read_log_header(nilfs, pseg_start, &sum); in nilfs_search_super_root()
832 if (!bh_sum) in nilfs_search_super_root()
835 ret = nilfs_validate_log(nilfs, seg_seq, bh_sum, sum); in nilfs_search_super_root()
940 brelse(bh_sum); in nilfs_search_super_root()
948 brelse(bh_sum); in nilfs_search_super_root()