diff options
author | Jan Kara <jack@suse.cz> | 2023-06-22 18:51:07 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-23 08:14:41 -0600 |
commit | a42fb5a75ccc37dfd69aa9bde5ba2866e802ff3c (patch) | |
tree | 99382770d0bcb1c4fcc817b8e30939a5f8a2d2b9 /fs/ext4 | |
parent | 648fa60fa7de3ca6f6303e1721591ad73def9cf0 (diff) |
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: 2736e8eeb0cc ("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>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 94a7b56ed876..64342adcd679 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -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; } } |