diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-11-17 01:12:38 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-08 19:34:40 -0500 |
commit | 29db78aa0ac82319b764b87a1c5030d74523e296 (patch) | |
tree | 94ac498a9d6b0f02b1ebb22fd3e51d5a3ed6952d /fs | |
parent | ad2b2c802be2d3e8ed8364fef5ffaddabe448219 (diff) |
btrfs: kill pointless reassignment of ->s_fs_info in btrfs_fill_super()
We do not (fortunately) modify ->s_fs_info of superblock on the fly in
btrfs_fill_super(); apparent assignment is a no-op.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/super.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 56e007fd6702..a381f9f9b0c2 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -588,8 +588,8 @@ static int btrfs_fill_super(struct super_block *sb, | |||
588 | { | 588 | { |
589 | struct inode *inode; | 589 | struct inode *inode; |
590 | struct dentry *root_dentry; | 590 | struct dentry *root_dentry; |
591 | struct btrfs_root *tree_root; | 591 | struct btrfs_root *tree_root = sb->s_fs_info; |
592 | struct btrfs_fs_info *fs_info; | 592 | struct btrfs_fs_info *fs_info = tree_root->fs_info; |
593 | struct btrfs_key key; | 593 | struct btrfs_key key; |
594 | int err; | 594 | int err; |
595 | 595 | ||
@@ -609,9 +609,6 @@ static int btrfs_fill_super(struct super_block *sb, | |||
609 | printk("btrfs: open_ctree failed\n"); | 609 | printk("btrfs: open_ctree failed\n"); |
610 | return err; | 610 | return err; |
611 | } | 611 | } |
612 | tree_root = sb->s_fs_info; | ||
613 | fs_info = tree_root->fs_info; | ||
614 | sb->s_fs_info = tree_root; | ||
615 | 612 | ||
616 | key.objectid = BTRFS_FIRST_FREE_OBJECTID; | 613 | key.objectid = BTRFS_FIRST_FREE_OBJECTID; |
617 | key.type = BTRFS_INODE_ITEM_KEY; | 614 | key.type = BTRFS_INODE_ITEM_KEY; |