X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Flustre_compat25.h;h=b9118c7abc77f2d16d48e2985e7d983489b80234;hp=cd3e3865fae03b70a28fef464b8952ee1f42b28f;hb=da09be15c52c15ab42aec658c848fa17453855a2;hpb=e55470912ac80e3408cc24b8dd3e07683aa98257 diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index cd3e386..b9118c7 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -422,13 +422,15 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount) #define ll_d_hlist_for_each_entry(dentry, p, i_dentry, alias) \ hlist_for_each_entry(dentry, p, i_dentry, alias) #endif +#define DECLARE_LL_D_HLIST_NODE_PTR(name) struct ll_d_hlist_node *name #else #define ll_d_hlist_node list_head #define ll_d_hlist_empty(list) list_empty(list) #define ll_d_hlist_entry(ptr, type, name) list_entry(ptr.next, type, name) #define ll_d_hlist_for_each(tmp, i_dentry) list_for_each(tmp, i_dentry) #define ll_d_hlist_for_each_entry(dentry, p, i_dentry, alias) \ - p = NULL; list_for_each_entry(dentry, i_dentry, alias) + list_for_each_entry(dentry, i_dentry, alias) +#define DECLARE_LL_D_HLIST_NODE_PTR(name) /* nothing */ #endif