linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Huang Shijie <shijie8@gmail.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: akpm@linux-foundation.org, hugh.dickins@tiscali.co.uk,
	linux-mm@kvack.org
Subject: Re: [PATCH] rmap : simplify the code for try_to_unmap_file
Date: Thu, 29 Oct 2009 09:55:26 +0800	[thread overview]
Message-ID: <4AE8F60E.9020700@gmail.com> (raw)
In-Reply-To: <20091028220431.95F8.A69D9226@jp.fujitsu.com>

KOSAKI Motohiro wrote:
>> Just simplify the code when the mlocked is true.
>>
>> Signed-off-by: Huang Shijie <shijie8@gmail.com>
>> ---
>>  mm/rmap.c |    5 +----
>>  1 files changed, 1 insertions(+), 4 deletions(-)
>>
>> diff --git a/mm/rmap.c b/mm/rmap.c
>> index dd43373..c57c3b6 100644
>> --- a/mm/rmap.c
>> +++ b/mm/rmap.c
>> @@ -1100,13 +1100,10 @@ static int try_to_unmap_file(struct page *page, enum ttu_flags flags)
>>  		if (ret == SWAP_MLOCK) {
>>  			mlocked = try_to_mlock_page(page, vma);
>>  			if (mlocked)
>> -				break;  /* stop if actually mlocked page */
>> +				goto out;  /* stop if actually mlocked page */
>>  		}
>>  	}
>>  
>> -	if (mlocked)
>> -		goto out;
>> -
>>  	if (list_empty(&mapping->i_mmap_nonlinear))
>>  		goto out;
>>     
>
> Did anyone reviewed this patch?
> Anyway,
> 	Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
>
>   
thanks :)
> Huang, I'm sorry for the delaying. I was attend to JLS and I couldn't
> review long time.
>
>
>   
Not at all.I forgeted the JLS when I sent the two tiny patchs.
>
>   

--
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:[~2009-10-29  1:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-20  6:21 [PATCH] rmap : simplify the code for try_to_unmap_file Huang Shijie
2009-10-28 23:37 ` KOSAKI Motohiro
2009-10-29  1:55   ` Huang Shijie [this message]

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=4AE8F60E.9020700@gmail.com \
    --to=shijie8@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=hugh.dickins@tiscali.co.uk \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    /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;
as well as URLs for NNTP newsgroup(s).