linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Minchan Kim <minchan@kernel.org>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>
Subject: Re: mm: simplify reclaim path for MADV_FREE
Date: Thu, 22 Oct 2015 09:09:10 +0900	[thread overview]
Message-ID: <20151022000910.GF23631@bbox> (raw)
In-Reply-To: <20151021205417.GC9839@mwanda>

n Wed, Oct 21, 2015 at 11:54:17PM +0300, Dan Carpenter wrote:
> Hello Minchan Kim,
> 
> The patch e4f28388eb72: "mm: simplify reclaim path for MADV_FREE"
> from Oct 21, 2015, leads to the following static checker warning:
> 
> 	mm/rmap.c:1469 try_to_unmap_one()
> 	warn: inconsistent indenting
> 
> mm/rmap.c
>   1459                  /*
>   1460                   * Store the swap location in the pte.
>   1461                   * See handle_pte_fault() ...
>   1462                   */
>   1463                  VM_BUG_ON_PAGE(!PageSwapCache(page), page);
>   1464                  if (swap_duplicate(entry) < 0) {
>   1465                          set_pte_at(mm, address, pte, pteval);
>   1466                          ret = SWAP_FAIL;
>   1467                          goto out_unmap;
>   1468                  }
>   1469                          if (!PageDirty(page))
>   1470                                  SetPageDirty(page);
> 
> My guess is that we can just remove the extra tabs.  It wasn't supposed
> to be before the "goto out_unmap;" was it?

Thanks for the report, Dan.
Thanks for the quick fix, Andrew.

--
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:[~2015-10-22  0:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21 20:54 mm: simplify reclaim path for MADV_FREE Dan Carpenter
2015-10-22  0:09 ` Minchan Kim [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=20151022000910.GF23631@bbox \
    --to=minchan@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=dan.carpenter@oracle.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).