Lines Matching refs:bh
329 struct buffer_head *bh = NULL; in jbd2_journal_revoke() local
345 bh = bh_in; in jbd2_journal_revoke()
347 if (!bh) { in jbd2_journal_revoke()
348 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke()
349 if (bh) in jbd2_journal_revoke()
350 BUFFER_TRACE(bh, "found on hash"); in jbd2_journal_revoke()
361 if (bh2 != bh && buffer_revokevalid(bh2)) in jbd2_journal_revoke()
376 brelse(bh); in jbd2_journal_revoke()
382 if (bh) { in jbd2_journal_revoke()
383 if (!J_EXPECT_BH(bh, !buffer_revoked(bh), in jbd2_journal_revoke()
386 brelse(bh); in jbd2_journal_revoke()
389 set_buffer_revoked(bh); in jbd2_journal_revoke()
390 set_buffer_revokevalid(bh); in jbd2_journal_revoke()
395 BUFFER_TRACE(bh, "call brelse"); in jbd2_journal_revoke()
396 __brelse(bh); in jbd2_journal_revoke()
429 struct buffer_head *bh = jh2bh(jh); in jbd2_journal_cancel_revoke() local
437 if (test_set_buffer_revokevalid(bh)) { in jbd2_journal_cancel_revoke()
438 need_cancel = test_clear_buffer_revoked(bh); in jbd2_journal_cancel_revoke()
441 clear_buffer_revoked(bh); in jbd2_journal_cancel_revoke()
445 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
448 "blocknr %llu\n", (unsigned long long)bh->b_blocknr); in jbd2_journal_cancel_revoke()
459 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
469 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in jbd2_journal_cancel_revoke()
471 if (bh2 != bh) in jbd2_journal_cancel_revoke()
496 struct buffer_head *bh; in jbd2_clear_buffer_revoked_flags() local
498 bh = __find_get_block(journal->j_fs_dev, in jbd2_clear_buffer_revoked_flags()
501 if (bh) { in jbd2_clear_buffer_revoked_flags()
502 clear_buffer_revoked(bh); in jbd2_clear_buffer_revoked_flags()
503 __brelse(bh); in jbd2_clear_buffer_revoked_flags()