Lines 809-817
Link Here
|
809 |
{ |
809 |
{ |
810 |
struct inode * inode = foo; |
810 |
struct inode * inode = foo; |
811 |
|
811 |
|
|
|
812 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22) |
813 |
inode_init_once(inode); |
814 |
#else |
812 |
if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == |
815 |
if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == |
813 |
SLAB_CTOR_CONSTRUCTOR) |
816 |
SLAB_CTOR_CONSTRUCTOR) |
814 |
inode_init_once(inode); |
817 |
inode_init_once(inode); |
|
|
818 |
#endif |
815 |
} |
819 |
} |
816 |
|
820 |
|
817 |
static int __init fuse_fs_init(void) |
821 |
static int __init fuse_fs_init(void) |
Lines 860-871
Link Here
|
860 |
if (err) |
864 |
if (err) |
861 |
return err; |
865 |
return err; |
862 |
#endif |
866 |
#endif |
|
|
867 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22) |
868 |
kobj_set_kset_s(&fuse_subsys, fs_subsys); |
869 |
#else |
863 |
kset_set_kset_s(&fuse_subsys, fs_subsys); |
870 |
kset_set_kset_s(&fuse_subsys, fs_subsys); |
|
|
871 |
#endif |
864 |
err = subsystem_register(&fuse_subsys); |
872 |
err = subsystem_register(&fuse_subsys); |
865 |
if (err) |
873 |
if (err) |
866 |
goto out_err; |
874 |
goto out_err; |
867 |
|
875 |
|
|
|
876 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22) |
877 |
kobj_set_kset_s(&connections_subsys, fuse_subsys); |
878 |
#else |
868 |
kset_set_kset_s(&connections_subsys, fuse_subsys); |
879 |
kset_set_kset_s(&connections_subsys, fuse_subsys); |
|
|
880 |
#endif |
869 |
err = subsystem_register(&connections_subsys); |
881 |
err = subsystem_register(&connections_subsys); |
870 |
if (err) |
882 |
if (err) |
871 |
goto out_fuse_unregister; |
883 |
goto out_fuse_unregister; |