mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
fs/ntfs3: Use sb instead of sbi->sb in fill_super
Use sb instead of sbi->sb in fill_super. We have sb so why not use it. Also makes code more readable. Signed-off-by: Kari Argillander <kari.argillander@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
10b4f12c70
commit
b4f110d65e
@ -1010,7 +1010,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
|
|
||||||
iput(inode);
|
iput(inode);
|
||||||
|
|
||||||
is_ro = sb_rdonly(sbi->sb);
|
is_ro = sb_rdonly(sb);
|
||||||
|
|
||||||
if (sbi->flags & NTFS_FLAGS_NEED_REPLAY) {
|
if (sbi->flags & NTFS_FLAGS_NEED_REPLAY) {
|
||||||
if (!is_ro) {
|
if (!is_ro) {
|
||||||
@ -1101,7 +1101,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
|
|
||||||
/* Not necessary. */
|
/* Not necessary. */
|
||||||
sbi->used.bitmap.set_tail = true;
|
sbi->used.bitmap.set_tail = true;
|
||||||
err = wnd_init(&sbi->used.bitmap, sbi->sb, tt);
|
err = wnd_init(&sbi->used.bitmap, sb, tt);
|
||||||
if (err)
|
if (err)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
@ -1115,7 +1115,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
/* Load $AttrDef. */
|
/* Load $AttrDef. */
|
||||||
ref.low = cpu_to_le32(MFT_REC_ATTR);
|
ref.low = cpu_to_le32(MFT_REC_ATTR);
|
||||||
ref.seq = cpu_to_le16(MFT_REC_ATTR);
|
ref.seq = cpu_to_le16(MFT_REC_ATTR);
|
||||||
inode = ntfs_iget5(sbi->sb, &ref, &NAME_ATTRDEF);
|
inode = ntfs_iget5(sb, &ref, &NAME_ATTRDEF);
|
||||||
if (IS_ERR(inode)) {
|
if (IS_ERR(inode)) {
|
||||||
ntfs_err(sb, "Failed to load $AttrDef -> %d", err);
|
ntfs_err(sb, "Failed to load $AttrDef -> %d", err);
|
||||||
return PTR_ERR(inode);
|
return PTR_ERR(inode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user