aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 7d8c127daad7..6aa016f1d3ae 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -311,7 +311,7 @@ extern void FASTCALL(__page_cache_release(struct page *));
311 311
312static inline int page_count(struct page *page) 312static inline int page_count(struct page *page)
313{ 313{
314 if (PageCompound(page)) 314 if (unlikely(PageCompound(page)))
315 page = (struct page *)page_private(page); 315 page = (struct page *)page_private(page);
316 return atomic_read(&page->_count); 316 return atomic_read(&page->_count);
317} 317}