diff options
author | Christoph Hellwig <hch@lst.de> | 2023-08-07 12:26:23 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-08-09 08:16:55 +0200 |
commit | 01efe93a5aa20a19b390426718dc214898a7c2ec (patch) | |
tree | 7dbdef1095c1f5a85f1df7add49627d7e25437d3 /fs/ext4/ext4_jbd2.c | |
parent | 4b2201dad26742c92decd920471b7185088624f5 (diff) |
ext4: don't use bdev->bd_super in __ext4_journal_get_write_access
__ext4_journal_get_write_access already has a super_block available,
and there is no need to go from that to the bdev to go back to the
owning super_block.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Message-Id: <20230807112625.652089-3-hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ext4/ext4_jbd2.c')
-rw-r--r-- | fs/ext4/ext4_jbd2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index 77f318ec8abb..b38d59581411 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c @@ -234,8 +234,7 @@ int __ext4_journal_get_write_access(const char *where, unsigned int line, might_sleep(); - if (bh->b_bdev->bd_super) - ext4_check_bdev_write_error(bh->b_bdev->bd_super); + ext4_check_bdev_write_error(sb); if (ext4_handle_valid(handle)) { err = jbd2_journal_get_write_access(handle, bh); |