git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build failures on PaX/GRSecurity patched kernels
[zfs.git]
/
include
/
linux
/
dcache_compat.h
diff --git
a/include/linux/dcache_compat.h
b/include/linux/dcache_compat.h
index
a624d4d
..
a423562
100644
(file)
--- a/
include/linux/dcache_compat.h
+++ b/
include/linux/dcache_compat.h
@@
-29,5
+29,10
@@
#include <linux/dcache.h>
#define dname(dentry) ((char *)((dentry)->d_name.name))
#include <linux/dcache.h>
#define dname(dentry) ((char *)((dentry)->d_name.name))
+#define dlen(dentry) ((int)((dentry)->d_name.len))
+
+#ifndef HAVE_D_MAKE_ROOT
+#define d_make_root(inode) d_alloc_root(inode)
+#endif /* HAVE_D_MAKE_ROOT */
#endif /* _ZFS_DCACHE_H */
#endif /* _ZFS_DCACHE_H */