Skip to content

Commit

Permalink
btrfs: kill pointless reassignment of ->s_fs_info in btrfs_fill_super()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Jan 9, 2012
1 parent ad2b2c8 commit 29db78a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ static int btrfs_fill_super(struct super_block *sb,
{
struct inode *inode;
struct dentry *root_dentry;
struct btrfs_root *tree_root;
struct btrfs_fs_info *fs_info;
struct btrfs_root *tree_root = sb->s_fs_info;
struct btrfs_fs_info *fs_info = tree_root->fs_info;
struct btrfs_key key;
int err;

Expand All @@ -609,9 +609,6 @@ static int btrfs_fill_super(struct super_block *sb,
printk("btrfs: open_ctree failed\n");
return err;
}
tree_root = sb->s_fs_info;
fs_info = tree_root->fs_info;
sb->s_fs_info = tree_root;

key.objectid = BTRFS_FIRST_FREE_OBJECTID;
key.type = BTRFS_INODE_ITEM_KEY;
Expand Down

0 comments on commit 29db78a

Please sign in to comment.