X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Flustre_compat25.h;h=ecaa8eb13b27ebc6f420e39d807876e99beeb2fc;hp=01f5e4fbfea7153daf6f2cbb341d06eaeffa1f69;hb=49b74e8ab7c0bf76a4ff5b0b2cce15314b1ca8f8;hpb=f12b088ace79fa518bdfc8bdb9b462b8165d715e diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index 01f5e4f..ecaa8eb 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -692,10 +692,6 @@ static inline int ll_crypto_hmac(struct crypto_tfm *tfm, #define cfs_for_each_possible_cpu(cpu) for_each_cpu(cpu) #endif -#ifndef cpu_to_node -#define cpu_to_node(cpu) 0 -#endif - #ifdef HAVE_BIO_ENDIO_2ARG #define cfs_bio_io_error(a,b) bio_io_error((a)) #define cfs_bio_endio(a,b,c) bio_endio((a),(c)) @@ -860,5 +856,10 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount) #define ll_pagevec_lru_add_file(pv) pagevec_lru_add_file(pv) #endif +#if !defined(HAVE_NODE_TO_CPUMASK) && defined(HAVE_CPUMASK_OF_NODE) +#define node_to_cpumask(i) (*(cpumask_of_node(i))) +#define HAVE_NODE_TO_CPUMASK +#endif + #endif /* __KERNEL__ */ #endif /* _COMPAT25_H */