Btrfs: sysfs: let default_attrs be separate from the kset
authorAnand Jain <Anand.Jain@oracle.com>
Mon, 9 Mar 2015 22:38:27 +0000 (06:38 +0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 May 2015 10:27:20 +0000 (12:27 +0200)
commit0dd2906f7229186424cdc80be8654b2c21d9c04c
tree6a3a4384f995c82f74d7cbcfdb4a4f25c170e232
parent720592157eeef627ff9a7c7c55ab1713bc48fb50
Btrfs: sysfs: let default_attrs be separate from the kset

As of now btrfs_attrs are provided using the default_attrs through
the kset. Separate them and create the default_attrs using the
sysfs_create_files instead. By doing this we will have the
flexibility that device discovery thread could create fsid
kobject.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/sysfs.c