X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fdcache_compat.h;h=a42356276a045d86bfdcabfad66b9d9c7a11e309;hb=8f576c232106b2278f03be06554044eed762641b;hp=5f7d5e97f1543519a5088ee0159208afdeff9de9;hpb=ebe7e575eae1e03b1faa545a424f008faeac589d;p=zfs.git diff --git a/include/linux/dcache_compat.h b/include/linux/dcache_compat.h index 5f7d5e9..a423562 100644 --- a/include/linux/dcache_compat.h +++ b/include/linux/dcache_compat.h @@ -31,4 +31,8 @@ #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 */