linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Hillf Danton" <hillf.zj@alibaba-inc.com>
To: 'Huang Ying' <ying.huang@intel.com>
Cc: linux-mm@kvack.org
Subject: Re: [RFC 11/11] mm, THP, swap: Delay splitting THP during swap out
Date: Wed, 10 Aug 2016 16:01:59 +0800	[thread overview]
Message-ID: <01f301d1f2dd$78df7660$6a9e6320$@alibaba-inc.com> (raw)
In-Reply-To: <01f201d1f2dc$bd43f750$37cbe5f0$@alibaba-inc.com>

> 
> @@ -187,6 +221,14 @@ int add_to_swap(struct page *page, struct list_head *list)
>  	VM_BUG_ON_PAGE(!PageLocked(page), page);
>  	VM_BUG_ON_PAGE(!PageUptodate(page), page);
> 
> +	if (unlikely(PageTransHuge(page))) {
> +		err = add_to_swap_trans_huge(page, list);
> +		if (err < 0)
> +			return 0;
> +		else if (err > 0)
> +			return err;
> +		/* fallback to split firstly if return 0 */

switch (err) and add vm event count according to the meaning of err? 
> +	}

thanks
Hillf

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

       reply	other threads:[~2016-08-10  8:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01f101d1f2da$5e943aa0$1bbcafe0$@alibaba-inc.com>
     [not found] ` <01f201d1f2dc$bd43f750$37cbe5f0$@alibaba-inc.com>
2016-08-10  8:01   ` Hillf Danton [this message]
2016-08-10 14:45     ` Huang, Ying
2016-08-10 16:28       ` Dave Hansen
2016-08-10 16:49         ` Huang, Ying
2016-08-09 16:37 [RFC 00/11] THP swap: Delay splitting THP during swapping out Huang, Ying
2016-08-09 16:37 ` [RFC 11/11] mm, THP, swap: Delay splitting THP during swap out Huang, Ying

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01f301d1f2dd$78df7660$6a9e6320$@alibaba-inc.com' \
    --to=hillf.zj@alibaba-inc.com \
    --cc=linux-mm@kvack.org \
    --cc=ying.huang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox