Commit a42fb5a7 authored by Jan Kara's avatar Jan Kara Committed by Jens Axboe

ext4: Fix warning in blkdev_put()

ext4_blkdev_remove() passes a wrong holder pointer to blkdev_put() which
triggers a warning there. Fix it.

Fixes: 2736e8ee ("block: use the holder as indication for exclusive opens")
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230622165107.13687-1-jack@suse.czSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 648fa60f
......@@ -1133,7 +1133,7 @@ static void ext4_blkdev_remove(struct ext4_sb_info *sbi)
struct block_device *bdev;
bdev = sbi->s_journal_bdev;
if (bdev) {
blkdev_put(bdev, sbi->s_es);
blkdev_put(bdev, sbi->s_sb);
sbi->s_journal_bdev = NULL;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment