Re: [PATCH] futex: bugfix for futex-key conflict when futex use hugepage

Dave Hansen
2013-04-16T18:37:41Z

Instead of bothering to store the index, why not just calculate it, like:

On 04/15/2013 08:37 PM, zhang.yi20@zte.com.cn wrote:
> +static inline int get_page_compound_index(struct page *page)
> +{
> + if (PageHead(page))
> + return 0;
> + return compound_head(page) - page;
> +}

BTW, you've really got to get your mail client fixed. Your patch is
still line-wrapped.