This patch tries to correctly use kobjects in fs/ext4. In particular it allocates kobjects/ksets dynamically, instead of statically, and improve error handling in case kobject_* functions fail. It is based on https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev branch. Riccardo Schirone (3): fs/ext4: release kobject/kset even when init/register fail fs/ext4: create ext4_feat kobject dynamically fs/ext4: create ext4_kset dynamically fs/ext4/sysfs.c | 63 ++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 45 insertions(+), 18 deletions(-) -- 2.14.3