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()
572 struct buffer_head *bh_sum = NULL; in nilfs_do_roll_forward() local
595 brelse(bh_sum); in nilfs_do_roll_forward()
596 bh_sum = nilfs_read_log_header(nilfs, pseg_start, &sum); in nilfs_do_roll_forward()
597 if (!bh_sum) { in nilfs_do_roll_forward()
602 ret = nilfs_validate_log(nilfs, seg_seq, bh_sum, sum); in nilfs_do_roll_forward()
677 brelse(bh_sum); in nilfs_do_roll_forward()
804 struct buffer_head *bh_sum = NULL; in nilfs_search_super_root() local
832 brelse(bh_sum); in nilfs_search_super_root()
834 bh_sum = nilfs_read_log_header(nilfs, pseg_start, &sum); in nilfs_search_super_root()
835 if (!bh_sum) in nilfs_search_super_root()
838 ret = nilfs_validate_log(nilfs, seg_seq, bh_sum, sum); in nilfs_search_super_root()
943 brelse(bh_sum); in nilfs_search_super_root()
951 brelse(bh_sum); in nilfs_search_super_root()