linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kirill.shutemov@linux.intel.com
Cc: linux-mm@kvack.org
Subject: re: mm: postpone page table allocation until we have page to map
Date: Sat, 11 Jun 2016 23:12:50 +0300	[thread overview]
Message-ID: <20160611201249.GA24708@mwanda> (raw)

Hello Kirill A. Shutemov,

The patch 78d5e6079a91: "mm: postpone page table allocation until we
have page to map" from Jun 9, 2016, leads to the following static
checker warning:

	mm/memory.c:3175 do_fault_around()
	warn: if statement not indented

mm/memory.c
  3167          /* check if the page fault is solved */
  3168          fe->pte -= (fe->address >> PAGE_SHIFT) - (address >> PAGE_SHIFT);
  3169          if (!pte_none(*fe->pte)) {
  3170                  /*
  3171                   * Faultaround produce old pte, but the pte we've
  3172                   * handler fault for should be young.
  3173                   */
  3174                  pte_t entry = pte_mkyoung(*fe->pte);
  3175                  if (ptep_set_access_flags(fe->vma, fe->address, fe->pte,
  3176                                          entry, 0))

What's going on here?  Should the next line be indented?

  3177                  update_mmu_cache(fe->vma, fe->address, fe->pte);
  3178                  ret = VM_FAULT_NOPAGE;
  3179          }
  3180          pte_unmap_unlock(fe->pte, fe->ptl);
  3181  out:
  3182          fe->address = address;
  3183          fe->pte = NULL;
  3184          return ret;
  3185  }

regards,
dan carpenter

--
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-06-11 20:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-11 20:12 Dan Carpenter [this message]
2016-06-11 23:47 ` mm: postpone page table allocation until we have page to map Kirill A. Shutemov

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=20160611201249.GA24708@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=kirill.shutemov@linux.intel.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).