Lines Matching defs:bh_sum
184 struct buffer_head *bh_sum;
186 bh_sum = __bread(nilfs->ns_bdev, start_blocknr, nilfs->ns_blocksize);
187 if (bh_sum)
188 *sum = (struct nilfs_segment_summary *)bh_sum->b_data;
189 return bh_sum;
196 * @bh_sum: buffer head of summary block
200 struct buffer_head *bh_sum,
222 if (nilfs_compute_checksum(nilfs, bh_sum, &crc, sizeof(sum->ss_datasum),
224 bh_sum->b_blocknr, nblock))
574 struct buffer_head *bh_sum = NULL;
597 brelse(bh_sum);
598 bh_sum = nilfs_read_log_header(nilfs, pseg_start, &sum);
599 if (!bh_sum) {
604 ret = nilfs_validate_log(nilfs, seg_seq, bh_sum, sum);
678 brelse(bh_sum);
808 struct buffer_head *bh_sum = NULL;
836 brelse(bh_sum);
838 bh_sum = nilfs_read_log_header(nilfs, pseg_start, &sum);
839 if (!bh_sum)
842 ret = nilfs_validate_log(nilfs, seg_seq, bh_sum, sum);
947 brelse(bh_sum);
955 brelse(bh_sum);