|
Kmods SIG |
8b815c |
From b4f110d65e21bf937fc5d3d894ec1cd540c85a71 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:37 +0300
|
|
Kmods SIG |
8b815c |
Subject: [Backport b4f110d65e21] src: Use sb instead of sbi->sb in
|
|
Kmods SIG |
8b815c |
fill_super
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Use sb instead of sbi->sb in fill_super. We have sb so why not use
|
|
Kmods SIG |
8b815c |
it. Also makes code more readable.
|
|
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 | 6 +++---
|
|
Kmods SIG |
8b815c |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
diff --git a/src/super.c b/src/super.c
|
|
Kmods SIG |
8b815c |
index 4ff61534682cd903bcea5f8c73567f10006e3a4d..c18705bf857f6f58c56c619a9702fa02dc7a30b6 100644
|
|
Kmods SIG |
8b815c |
--- a/src/super.c
|
|
Kmods SIG |
8b815c |
+++ b/src/super.c
|
|
Kmods SIG |
8b815c |
@@ -1010,7 +1010,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
iput(inode);
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
- is_ro = sb_rdonly(sbi->sb);
|
|
Kmods SIG |
8b815c |
+ is_ro = sb_rdonly(sb);
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
if (sbi->flags & NTFS_FLAGS_NEED_REPLAY) {
|
|
Kmods SIG |
8b815c |
if (!is_ro) {
|
|
Kmods SIG |
8b815c |
@@ -1101,7 +1101,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
/* Not necessary. */
|
|
Kmods SIG |
8b815c |
sbi->used.bitmap.set_tail = true;
|
|
Kmods SIG |
8b815c |
- err = wnd_init(&sbi->used.bitmap, sbi->sb, tt);
|
|
Kmods SIG |
8b815c |
+ err = wnd_init(&sbi->used.bitmap, sb, tt);
|
|
Kmods SIG |
8b815c |
if (err)
|
|
Kmods SIG |
8b815c |
goto out;
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
@@ -1115,7 +1115,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|
Kmods SIG |
8b815c |
/* Load $AttrDef. */
|
|
Kmods SIG |
8b815c |
ref.low = cpu_to_le32(MFT_REC_ATTR);
|
|
Kmods SIG |
8b815c |
ref.seq = cpu_to_le16(MFT_REC_ATTR);
|
|
Kmods SIG |
8b815c |
- inode = ntfs_iget5(sbi->sb, &ref, &NAME_ATTRDEF);
|
|
Kmods SIG |
8b815c |
+ inode = ntfs_iget5(sb, &ref, &NAME_ATTRDEF);
|
|
Kmods SIG |
8b815c |
if (IS_ERR(inode)) {
|
|
Kmods SIG |
8b815c |
ntfs_err(sb, "Failed to load $AttrDef -> %d", err);
|
|
Kmods SIG |
8b815c |
return PTR_ERR(inode);
|
|
Kmods SIG |
8b815c |
--
|
|
Kmods SIG |
8b815c |
2.31.1
|
|
Kmods SIG |
8b815c |
|