Blame SOURCES/0070-fs-ntfs3-Remove-tmp-pointer-bd_inode-in-fill_super.patch

Kmods SIG d83023
From 4ea41b3eb5fd51b47742c6fa2ac1851a51ab0c69 Mon Sep 17 00:00:00 2001
Kmods SIG d83023
From: Kari Argillander <kari.argillander@gmail.com>
Kmods SIG d83023
Date: Thu, 9 Sep 2021 21:09:39 +0300
Kmods SIG d83023
Subject: [Backport 4ea41b3eb5fd] src: Remove tmp pointer bd_inode in
Kmods SIG d83023
 fill_super
Kmods SIG d83023
Kmods SIG d83023
Drop tmp pointer bd_inode because this is only used ones in fill_super.
Kmods SIG d83023
Also we have so many initializing happening at the beginning that it is
Kmods SIG d83023
already way too much to follow.
Kmods SIG d83023
Kmods SIG d83023
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Kmods SIG d83023
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Kmods SIG d83023
---
Kmods SIG d83023
 src/super.c | 3 +--
Kmods SIG d83023
 1 file changed, 1 insertion(+), 2 deletions(-)
Kmods SIG d83023
Kmods SIG d83023
diff --git a/src/super.c b/src/super.c
Kmods SIG d83023
index 93b8a1f4d7483210eeac016f2fb8abaa7e5d8b2c..e5ec808bd0522cb986ef11cbcc3ece57f6988916 100644
Kmods SIG d83023
--- a/src/super.c
Kmods SIG d83023
+++ b/src/super.c
Kmods SIG d83023
@@ -875,7 +875,6 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
Kmods SIG d83023
 	int err;
Kmods SIG d83023
 	struct ntfs_sb_info *sbi = sb->s_fs_info;
Kmods SIG d83023
 	struct block_device *bdev = sb->s_bdev;
Kmods SIG d83023
-	struct inode *bd_inode = bdev->bd_inode;
Kmods SIG d83023
 	struct request_queue *rq = bdev_get_queue(bdev);
Kmods SIG d83023
 	struct inode *inode;
Kmods SIG d83023
 	struct ntfs_inode *ni;
Kmods SIG d83023
@@ -918,7 +917,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
Kmods SIG d83023
 
Kmods SIG d83023
 	/* Parse boot. */
Kmods SIG d83023
 	err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512,
Kmods SIG d83023
-				  bd_inode->i_size);
Kmods SIG d83023
+				  bdev->bd_inode->i_size);
Kmods SIG d83023
 	if (err)
Kmods SIG d83023
 		return err;
Kmods SIG d83023
 
Kmods SIG d83023
-- 
Kmods SIG d83023
2.31.1
Kmods SIG d83023