aboutsummaryrefslogtreecommitdiffstats
path: root/module/spl
diff options
context:
space:
mode:
authorYuxuan Shui <[email protected]>2013-05-14 08:39:26 +0800
committerBrian Behlendorf <[email protected]>2013-07-08 15:14:21 -0700
commit1ddf9722dcb6429d38fcbc5ff791779ec89be9fc (patch)
tree4a5e754978f93ac0895cbd12c47ce2fe10804be6 /module/spl
parentc02ab72fb9d557e8d98c5e089faa6557b6d83127 (diff)
Linux 3.10 compat: replace PDE()->data with PDE_DATA()
Linux kernel commit torvalds/linux@d9dda78b renamed PDE() to PDE_DATA(). To handle this detect the prefered interface and define a PDE_DATA() wrapper for consistency. Signed-off-by: Yuxuan Shui <[email protected]> Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #257
Diffstat (limited to 'module/spl')
-rw-r--r--module/spl/spl-kstat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/spl/spl-kstat.c b/module/spl/spl-kstat.c
index b7e4b9426..2e5590101 100644
--- a/module/spl/spl-kstat.c
+++ b/module/spl/spl-kstat.c
@@ -33,6 +33,9 @@
#endif
#define SS_DEBUG_SUBSYS SS_KSTAT
+#ifndef HAVE_PDE_DATA
+#define PDE_DATA(x) (PDE(x)->data)
+#endif
static spinlock_t kstat_lock;
static struct list_head kstat_list;
@@ -359,7 +362,7 @@ proc_kstat_open(struct inode *inode, struct file *filp)
return rc;
f = filp->private_data;
- f->private = PDE(inode)->data;
+ f->private = PDE_DATA(inode);
return rc;
}