summaryrefslogtreecommitdiff
path: root/mm/util.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2016-05-11 09:50:55 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2016-05-13 13:24:40 +1000
commit8188281aad6e4f48ce4d99ab52572d1f7363ed57 (patch)
tree7d8c8648c97754cf327ce168fe1b6d3f4c3de345 /mm/util.c
parent1d36276b561bdbf62698362ce7efae037f568094 (diff)
mm-uninline-page_mapped-checkpatch-fixes
WARNING: Missing a blank line after declarations #61: FILE: mm/util.c:356: + int i; + if (likely(!PageCompound(page))) total: 0 errors, 1 warnings, 55 lines checked ./patches/mm-uninline-page_mapped.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/util.c')
-rw-r--r--mm/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/util.c b/mm/util.c
index be4776eab975..8a1b3a1fb595 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -353,6 +353,7 @@ void *page_rmapping(struct page *page)
bool page_mapped(struct page *page)
{
int i;
+
if (likely(!PageCompound(page)))
return atomic_read(&page->_mapcount) >= 0;
page = compound_head(page);