]> git.pld-linux.org Git - packages/shfs.git/blobdiff - shfs-d_entry.patch
- kmem_cache_t -> struct kmem_cache (prefered since 2.6.20, required by .24)
[packages/shfs.git] / shfs-d_entry.patch
index a1534bc221d9e9e03c5e6534036e608d7a24955e..dbd251e261761767c5b272caab7cf7f8e558233b 100644 (file)
@@ -1,20 +1,34 @@
---- shfs/Linux-2.6/dcache.c    2004-06-01 15:16:19.000000000 +0200
-+++ shfs/Linux-2.6/dcache.c    2006-02-17 17:36:02.000000000 +0100
-@@ -68,7 +68,7 @@
+--- shfs-0.35-vanilla/shfs/Linux-2.6/dcache.c  2004-06-01 15:16:19.000000000 +0200
++++ shfs-0.35/shfs/Linux-2.6/dcache.c  2006-05-10 15:34:39.000000000 +0200
+@@ -19,6 +19,7 @@
+ #include <linux/mm.h>
+ #include <linux/dirent.h>
+ #include <linux/pagemap.h>
++#include <linux/version.h>
+ #include <asm/page.h>
+ #include "shfs_fs.h"
+@@ -68,7 +69,11 @@
        spin_lock(&dcache_lock);
        next = parent->d_subdirs.next;
        while (next != &parent->d_subdirs) {
--              dentry = list_entry(next, struct dentry, d_child);
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16))
 +              dentry = list_entry(next, struct dentry, d_u.d_child);
++#else
+               dentry = list_entry(next, struct dentry, d_child);
++#endif
                dentry->d_fsdata = NULL;
                shfs_age_dentry(info, dentry);
                next = next->next;
-@@ -101,7 +101,7 @@
+@@ -101,7 +106,11 @@
        spin_lock(&dcache_lock);
        next = parent->d_subdirs.next;
        while (next != &parent->d_subdirs) {
--              dent = list_entry(next, struct dentry, d_child);
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16))
 +              dent = list_entry(next, struct dentry, d_u.d_child);
++#else
+               dent = list_entry(next, struct dentry, d_child);
++#endif
                if ((unsigned long)dent->d_fsdata == fpos) {
                        if (dent->d_inode)
                                dget_locked(dent);
This page took 0.031328 seconds and 4 git commands to generate.