Home | History | Annotate | Download | only in e2fsck

Lines Matching refs:bh

74 	struct buffer_head *bh;
97 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize);
98 if (!bh) {
103 if (!buffer_uptodate(bh) && !buffer_locked(bh)) {
104 bufs[nbufs++] = bh;
111 brelse(bh);
136 struct buffer_head *bh;
153 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize);
154 if (!bh)
157 if (!buffer_uptodate(bh)) {
160 if (!buffer_req(bh))
162 wait_on_buffer(bh);
165 if (!buffer_uptodate(bh)) {
168 brelse(bh);
172 *bhp = bh;
181 static int count_tags(journal_t *journal, struct buffer_head *bh)
188 tagp = &bh->b_data[sizeof(journal_header_t)];
190 while ((tagp - bh->b_data + tag_bytes) <= size) {
322 static int calc_chksums(journal_t *journal, struct buffer_head *bh,
329 num_blks = count_tags(journal, bh);
331 *crc32_sum = crc32_be(*crc32_sum, (void *)bh->b_data, bh->b_size);
358 struct buffer_head * bh;
412 err = jread(&bh, journal, next_log_block);
425 tmp = (journal_header_t *)bh->b_data;
428 brelse(bh);
438 brelse(bh);
457 if (calc_chksums(journal, bh,
460 brelse(bh);
463 brelse(bh);
466 next_log_block += count_tags(journal, bh);
468 brelse(bh);
476 tagp = &bh->b_data[sizeof(journal_header_t)];
477 while ((tagp - bh->b_data + tag_bytes)
523 brelse(bh);
558 brelse(bh);
604 (struct commit_header *)bh->b_data;
615 brelse(bh);
648 brelse(bh);
654 brelse(bh);
662 brelse(bh);
666 err = scan_revoke_records(journal, bh,
668 brelse(bh);
676 brelse(bh);
713 static int scan_revoke_records(journal_t *journal, struct buffer_head *bh,
720 header = (journal_revoke_header_t *) bh->b_data;
733 memcpy(&b, bh->b_data + offset, sizeof(__be32));
737 memcpy(&b, bh->b_data + offset, sizeof(__be64));