This prevent us from panic if someone invalidate bh under us. Signed-off-by: Dmitry Monakhov <dmonak...@openvz.org> --- fs/jbd2/revoke.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/jbd2/revoke.c b/fs/jbd2/revoke.c index f9aefcd..e3b791d 100644 --- a/fs/jbd2/revoke.c +++ b/fs/jbd2/revoke.c @@ -459,7 +459,8 @@ int jbd2_journal_cancel_revoke(handle_t *handle, struct journal_head *jh) * state machine will get very upset later on. */ if (need_cancel) { struct buffer_head *bh2; - bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); + bh2 = __find_get_block(journal->j_dev, bh->b_blocknr, + bh->b_size); if (bh2) { if (bh2 != bh) clear_buffer_revoked(bh2); -- 2.9.3