fs/ntfs3: Remove unnecessary variable loading in fill_super
Remove some unnecessary variable loading. These look like copy paste work and they are not used to anything. 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
bce1828f6d
commit
10b4f12c70
@ -877,7 +877,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
struct block_device *bdev = sb->s_bdev;
|
struct block_device *bdev = sb->s_bdev;
|
||||||
struct inode *bd_inode = bdev->bd_inode;
|
struct inode *bd_inode = bdev->bd_inode;
|
||||||
struct request_queue *rq = bdev_get_queue(bdev);
|
struct request_queue *rq = bdev_get_queue(bdev);
|
||||||
struct inode *inode = NULL;
|
struct inode *inode;
|
||||||
struct ntfs_inode *ni;
|
struct ntfs_inode *ni;
|
||||||
size_t i, tt;
|
size_t i, tt;
|
||||||
CLST vcn, lcn, len;
|
CLST vcn, lcn, len;
|
||||||
@ -977,9 +977,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
sbi->volume.major_ver = info->major_ver;
|
sbi->volume.major_ver = info->major_ver;
|
||||||
sbi->volume.minor_ver = info->minor_ver;
|
sbi->volume.minor_ver = info->minor_ver;
|
||||||
sbi->volume.flags = info->flags;
|
sbi->volume.flags = info->flags;
|
||||||
|
|
||||||
sbi->volume.ni = ni;
|
sbi->volume.ni = ni;
|
||||||
inode = NULL;
|
|
||||||
|
|
||||||
/* Load $MFTMirr to estimate recs_mirr. */
|
/* Load $MFTMirr to estimate recs_mirr. */
|
||||||
ref.low = cpu_to_le32(MFT_REC_MIRR);
|
ref.low = cpu_to_le32(MFT_REC_MIRR);
|
||||||
@ -1011,7 +1009,6 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
iput(inode);
|
iput(inode);
|
||||||
inode = NULL;
|
|
||||||
|
|
||||||
is_ro = sb_rdonly(sbi->sb);
|
is_ro = sb_rdonly(sbi->sb);
|
||||||
|
|
||||||
@ -1088,8 +1085,6 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
return PTR_ERR(inode);
|
return PTR_ERR(inode);
|
||||||
}
|
}
|
||||||
|
|
||||||
ni = ntfs_i(inode);
|
|
||||||
|
|
||||||
#ifndef CONFIG_NTFS3_64BIT_CLUSTER
|
#ifndef CONFIG_NTFS3_64BIT_CLUSTER
|
||||||
if (inode->i_size >> 32) {
|
if (inode->i_size >> 32) {
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
@ -1188,8 +1183,6 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
return PTR_ERR(inode);
|
return PTR_ERR(inode);
|
||||||
}
|
}
|
||||||
|
|
||||||
ni = ntfs_i(inode);
|
|
||||||
|
|
||||||
if (inode->i_size != 0x10000 * sizeof(short)) {
|
if (inode->i_size != 0x10000 * sizeof(short)) {
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
@ -1225,7 +1218,6 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
iput(inode);
|
iput(inode);
|
||||||
inode = NULL;
|
|
||||||
|
|
||||||
if (is_ntfs3(sbi)) {
|
if (is_ntfs3(sbi)) {
|
||||||
/* Load $Secure. */
|
/* Load $Secure. */
|
||||||
@ -1259,8 +1251,6 @@ load_root:
|
|||||||
return PTR_ERR(inode);
|
return PTR_ERR(inode);
|
||||||
}
|
}
|
||||||
|
|
||||||
ni = ntfs_i(inode);
|
|
||||||
|
|
||||||
sb->s_root = d_make_root(inode);
|
sb->s_root = d_make_root(inode);
|
||||||
if (!sb->s_root)
|
if (!sb->s_root)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user