summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Jain2015-03-09 23:38:20 +0100
committerDavid Sterba2015-05-27 12:27:19 +0200
commit4e51f005a22a2c7795351b975437b0cee0acce3e (patch)
tree6d417125476b5f3757b8ed487ada9cf5d40ec374
parentBtrfs: sysfs: fix, btrfs_release_super_kobj() should to clean up the kobject ... (diff)
downloadkernel-qcow2-linux-4e51f005a22a2c7795351b975437b0cee0acce3e.tar.gz
kernel-qcow2-linux-4e51f005a22a2c7795351b975437b0cee0acce3e.tar.xz
kernel-qcow2-linux-4e51f005a22a2c7795351b975437b0cee0acce3e.zip
Btrfs: sysfs: fix, fs_info kobject_unregister has init_completion() twice
kobject_unregister is to handle the release of the kobject, its completion init is being called in btrfs_sysfs_add_one(), so we don't have to do the same in the open_ctree() again. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 2ef9a4b72d06..c42503cf3462 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2494,7 +2494,6 @@ int open_ctree(struct super_block *sb,
seqlock_init(&fs_info->profiles_lock);
init_rwsem(&fs_info->delayed_iput_sem);
- init_completion(&fs_info->kobj_unregister);
INIT_LIST_HEAD(&fs_info->dirty_cowonly_roots);
INIT_LIST_HEAD(&fs_info->space_info);
INIT_LIST_HEAD(&fs_info->tree_mod_seq_list);