diff options
author | Kari Argillander <kari.argillander@gmail.com> | 2021-09-09 21:09:39 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-09-20 18:53:10 +0300 |
commit | 4ea41b3eb5fd51b47742c6fa2ac1851a51ab0c69 (patch) | |
tree | 4bff0bcb25a2982d060183bc2b3b0a6fe7f8ac1d /fs/ntfs3 | |
parent | 0cde7e81cd448a5df01a3960f6608b15dc3f12a3 (diff) | |
download | lwn-4ea41b3eb5fd51b47742c6fa2ac1851a51ab0c69.tar.gz lwn-4ea41b3eb5fd51b47742c6fa2ac1851a51ab0c69.zip |
fs/ntfs3: Remove tmp pointer bd_inode in fill_super
Drop tmp pointer bd_inode because this is only used ones in fill_super.
Also we have so many initializing happening at the beginning that it is
already way too much to follow.
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 93b8a1f4d748..e5ec808bd052 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -875,7 +875,6 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc) int err; struct ntfs_sb_info *sbi = sb->s_fs_info; struct block_device *bdev = sb->s_bdev; - struct inode *bd_inode = bdev->bd_inode; struct request_queue *rq = bdev_get_queue(bdev); struct inode *inode; struct ntfs_inode *ni; @@ -918,7 +917,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc) /* Parse boot. */ err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512, - bd_inode->i_size); + bdev->bd_inode->i_size); if (err) return err; |