Skip to content

Commit a42fb5a

Browse files
jankaraaxboe
authored andcommitted
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: 2736e8e ("block: use the holder as indication for exclusive opens") Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230622165107.13687-1-jack@suse.cz Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 648fa60 commit a42fb5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ static void ext4_blkdev_remove(struct ext4_sb_info *sbi)
11331133
struct block_device *bdev;
11341134
bdev = sbi->s_journal_bdev;
11351135
if (bdev) {
1136-
blkdev_put(bdev, sbi->s_es);
1136+
blkdev_put(bdev, sbi->s_sb);
11371137
sbi->s_journal_bdev = NULL;
11381138
}
11391139
}

0 commit comments

Comments
 (0)