• Home
  • Raw
  • Download

Lines Matching refs:bh

287 	struct buffer_head *bh = NULL;  in journal_revoke()  local
302 bh = bh_in; in journal_revoke()
304 if (!bh) { in journal_revoke()
305 bh = get_hash_table(dev, blocknr, journal->j_blocksize); in journal_revoke()
306 if (bh) in journal_revoke()
307 BUFFER_TRACE(bh, "found on hash"); in journal_revoke()
318 if ((bh2 != bh) && in journal_revoke()
336 if (bh) { in journal_revoke()
337 J_ASSERT_BH(bh, !test_bit(BH_Revoked, &bh->b_state)); in journal_revoke()
338 set_bit(BH_Revoked, &bh->b_state); in journal_revoke()
339 set_bit(BH_RevokeValid, &bh->b_state); in journal_revoke()
344 BUFFER_TRACE(bh, "call brelse"); in journal_revoke()
345 __brelse(bh); in journal_revoke()
381 struct buffer_head *bh = jh2bh(jh); in journal_cancel_revoke() local
389 if (test_and_set_bit(BH_RevokeValid, &bh->b_state)) in journal_cancel_revoke()
390 need_cancel = (test_and_clear_bit(BH_Revoked, &bh->b_state)); in journal_cancel_revoke()
393 clear_bit(BH_Revoked, &bh->b_state); in journal_cancel_revoke()
397 record = find_revoke_record(journal, bh->b_blocknr); in journal_cancel_revoke()
400 "blocknr %lu\n", bh->b_blocknr); in journal_cancel_revoke()
409 record = find_revoke_record(journal, bh->b_blocknr); in journal_cancel_revoke()
417 if (need_cancel && !bh->b_pprev) { in journal_cancel_revoke()
419 bh2 = get_hash_table(bh->b_dev, bh->b_blocknr, bh->b_size); in journal_cancel_revoke()
549 struct buffer_head *bh = jh2bh(descriptor); in flush_descriptor() local
550 BUFFER_TRACE(bh, "write"); in flush_descriptor()
551 ll_rw_block (WRITE, 1, &bh); in flush_descriptor()