684402f475eeb282c6d917cece3a55ba1e68414c
[openwrt/svn-archive/archive.git] / package / fuse / patches / 230-kobj.patch
1 --- fuse.old/kernel/inode.c 2007-05-29 07:31:43.000000000 +0100
2 +++ fuse.dev/kernel/inode.c 2007-05-29 07:29:42.000000000 +0100
3 @@ -858,12 +858,20 @@
4 if (err)
5 return err;
6 #endif
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
8 + kobj_set_kset_s(&fuse_subsys, fs_subsys);
9 +#else
10 kset_set_kset_s(&fuse_subsys, fs_subsys);
11 +#endif
12 err = subsystem_register(&fuse_subsys);
13 if (err)
14 goto out_err;
15
16 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
17 + kobj_set_kset_s(&connections_subsys, fuse_subsys);
18 +#else
19 kset_set_kset_s(&connections_subsys, fuse_subsys);
20 +#endif
21 err = subsystem_register(&connections_subsys);
22 if (err)
23 goto out_fuse_unregister;