SOURCES: squashfs_lzma-2.6.28.patch (NEW) - patch for 2.6.28

zbyniu zbyniu at pld-linux.org
Sun Jan 4 01:03:02 CET 2009


Author: zbyniu                       Date: Sun Jan  4 00:03:02 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- patch for 2.6.28

---- Files affected:
SOURCES:
   squashfs_lzma-2.6.28.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/squashfs_lzma-2.6.28.patch
diff -u /dev/null SOURCES/squashfs_lzma-2.6.28.patch:1.1
--- /dev/null	Sun Jan  4 01:03:03 2009
+++ SOURCES/squashfs_lzma-2.6.28.patch	Sun Jan  4 01:02:57 2009
@@ -0,0 +1,26 @@
+--- squashfs3.4/fs/squashfs/inode.c~	2009-01-04 00:37:01.141407232 +0100
++++ squashfs3.4/fs/squashfs/inode.c	2009-01-04 00:48:17.141340171 +0100
+@@ -32,6 +32,7 @@
+ #include <linux/vmalloc.h>
+ #include <linux/smp_lock.h>
+ #include <linux/exportfs.h>
++#include <linux/version.h>
+ 
+ #include "squashfs.h"
+ #include "sqlzma.h"
+@@ -689,11 +689,15 @@ static struct dentry *squashfs_export_ig
+ 		goto failure;
+ 	}
+ 
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28))
+ 	dentry = d_alloc_anon(i);
+ 	if (dentry == NULL) {
+ 		iput(i);
+ 		dentry = ERR_PTR(-ENOMEM);
+ 	}
++#else
++	dentry = d_obtain_alias(i);
++#endif
+ 
+ failure:
+ 	return dentry;
================================================================


More information about the pld-cvs-commit mailing list