summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorTobias Powalowski <tobias@T-POWA-LX.(none)>2008-12-25 21:35:15 +0100
committerTobias Powalowski <tobias@T-POWA-LX.(none)>2008-12-25 21:35:15 +0100
commit22a2c80b8cac3de2055a27edcd9faa2d28084480 (patch)
tree6296e35b420e7cf64d0f9c7182d1d508e44fe896 /patches
parent6d8b768db0b9140a1b9a0e1f2597bddacfd241e1 (diff)
'fixed squashfs'
Diffstat (limited to 'patches')
-rw-r--r--patches/squashfs3.4-patch25
1 files changed, 4 insertions, 21 deletions
diff --git a/patches/squashfs3.4-patch b/patches/squashfs3.4-patch
index 58e38eb..4535118 100644
--- a/patches/squashfs3.4-patch
+++ b/patches/squashfs3.4-patch
@@ -72,7 +72,7 @@ diff -x .gitignore -Nurp linux-2.6.27-rc4/fs/Makefile linux-2.6.27-rc4-squashfs3
diff -x .gitignore -Nurp linux-2.6.27-rc4/fs/squashfs/inode.c linux-2.6.27-rc4-squashfs3.4/fs/squashfs/inode.c
--- linux-2.6.27-rc4/fs/squashfs/inode.c 1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.27-rc4-squashfs3.4/fs/squashfs/inode.c 2008-08-26 08:25:23.000000000 +0100
-@@ -0,0 +1,2173 @@
+@@ -0,0 +1,2156 @@
+/*
+ * Squashfs - a compressed read only filesystem for Linux
+ *
@@ -713,31 +713,14 @@ diff -x .gitignore -Nurp linux-2.6.27-rc4/fs/squashfs/inode.c linux-2.6.27-rc4-s
+ unsigned int inode_number)
+{
+ squashfs_inode_t inode;
-+ struct inode *i;
-+ struct dentry *dentry;
+
+ TRACE("Entered squashfs_export_iget\n");
+
+ inode = squashfs_inode_lookup(s, inode_number);
-+ if(inode == SQUASHFS_INVALID_BLK) {
-+ dentry = ERR_PTR(-ENOENT);
-+ goto failure;
-+ }
-+
-+ i = squashfs_iget(s, inode, inode_number);
-+ if(i == NULL) {
-+ dentry = ERR_PTR(-EACCES);
-+ goto failure;
-+ }
-+
-+ dentry = d_alloc_anon(i);
-+ if (dentry == NULL) {
-+ iput(i);
-+ dentry = ERR_PTR(-ENOMEM);
-+ }
++ if(inode == SQUASHFS_INVALID_BLK)
++ return ERR_PTR(-ENOENT);
+
-+failure:
-+ return dentry;
++ return d_obtain_alias(squashfs_iget(s, inode, inode_number));
+}
+
+