fs/ntfs3: Remove tmp pointer bd_inode in fill_super
Drop tmp pointer bd_inode because this is only used ones in fill_super. Also we have so many initializing happening at the beginning that it is already way too much to follow. 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
0cde7e81cd
commit
4ea41b3eb5
|
@ -875,7 +875,6 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
||||||
int err;
|
int err;
|
||||||
struct ntfs_sb_info *sbi = sb->s_fs_info;
|
struct ntfs_sb_info *sbi = sb->s_fs_info;
|
||||||
struct block_device *bdev = sb->s_bdev;
|
struct block_device *bdev = sb->s_bdev;
|
||||||
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;
|
struct inode *inode;
|
||||||
struct ntfs_inode *ni;
|
struct ntfs_inode *ni;
|
||||||
|
@ -918,7 +917,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
||||||
|
|
||||||
/* Parse boot. */
|
/* Parse boot. */
|
||||||
err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512,
|
err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512,
|
||||||
bd_inode->i_size);
|
bdev->bd_inode->i_size);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue