Btrfs: fix unused members in struct btrfs_root
authorAnand Jain <Anand.Jain@oracle.com>
Mon, 12 Jan 2015 16:55:10 +0000 (00:55 +0800)
committerChris Mason <clm@fb.com>
Thu, 22 Jan 2015 02:22:37 +0000 (18:22 -0800)
There isn't any real use of following members of struct btrfs_root
so delete them.

struct kobject root_kobj;
struct completion kobj_unregister;

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c

index 2ecdac0bd8508593bfc74a9ff92c5722230bd421..85c697d482c29e9a3f7531a9a3337f66067364b1 100644 (file)
@@ -1798,8 +1798,6 @@ struct btrfs_root {
        struct btrfs_fs_info *fs_info;
        struct extent_io_tree dirty_log_pages;
 
-       struct kobject root_kobj;
-       struct completion kobj_unregister;
        struct mutex objectid_mutex;
 
        spinlock_t accounting_lock;
index 0696a103751e7f8be5337469187faceb8b3e9283..612d46eece629e0bda46d1edfce25365941e195a 100644 (file)
@@ -1275,12 +1275,10 @@ static void __setup_root(u32 nodesize, u32 sectorsize, u32 stripesize,
        memset(&root->root_key, 0, sizeof(root->root_key));
        memset(&root->root_item, 0, sizeof(root->root_item));
        memset(&root->defrag_progress, 0, sizeof(root->defrag_progress));
-       memset(&root->root_kobj, 0, sizeof(root->root_kobj));
        if (fs_info)
                root->defrag_trans_start = fs_info->generation;
        else
                root->defrag_trans_start = 0;
-       init_completion(&root->kobj_unregister);
        root->root_key.objectid = objectid;
        root->anon_dev = 0;