From: Anand Jain Date: Mon, 9 Mar 2015 22:38:24 +0000 (+0800) Subject: Btrfs: sysfs: reorder the kobject creations X-Git-Tag: omap-for-v4.3/legacy-v2-signed~98^2~1^2~20 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaf13305160490531b0d5ee4d56d32fc09f9bfa0;p=pandora-kernel.git Btrfs: sysfs: reorder the kobject creations As of now the order in which the kobjects are created at btrfs_sysfs_add_one() is.. fsid features unknown features (dynamic features) devices. Since we would move fsid and device kobject to fs_devices from fs_info structure, this patch will reorder in which the kobjects are created as below. fsid devices features unknown features (dynamic features) And hence the btrfs_sysfs_remove_one() will follow the same in reverse order. and the device kobject destroy now can be moved into the function __btrfs_sysfs_remove_one() Signed-off-by: Anand Jain Signed-off-by: David Sterba --- Reading git-diff-tree failed