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

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