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

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