Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
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)