Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 179085 | Differences between
and this patch

Collapse All | Expand All

(-)/var/tmp/portage/sys-fs/fuse-2.6.4-r1/work/fuse-2.6.4/kernel/file.c (-1 / +2 lines)
Lines 781-787 Link Here
781
781
782
	if (cmd == F_GETLK) {
782
	if (cmd == F_GETLK) {
783
		if (fc->no_lock) {
783
		if (fc->no_lock) {
784
#ifdef KERNEL_2_6_17_PLUS
784
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 17) && \
785
		LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
785
			if (!posix_test_lock(file, fl, fl))
786
			if (!posix_test_lock(file, fl, fl))
786
				fl->fl_type = F_UNLCK;
787
				fl->fl_type = F_UNLCK;
787
#else
788
#else
(-)/var/tmp/portage/sys-fs/fuse-2.6.4-r1/work/fuse-2.6.4/kernel/inode.c (+12 lines)
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;

Return to bug 179085