aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHuang Shijie <sjhuang@iluvatar.ai>2019-05-13 17:21:07 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-14 09:47:49 -0700
commit059d8442ea77dd995c7ec075c6a6cca527b1c244 (patch)
tree8299026f710428aca2cbe8ffecec2aa4bd71ef9a /include
parentmm/filemap.c: enable error injection at add_to_page_cache() (diff)
downloadlinux-dev-059d8442ea77dd995c7ec075c6a6cca527b1c244.tar.xz
linux-dev-059d8442ea77dd995c7ec075c6a6cca527b1c244.zip
mm/rmap.c: use the pra.mapcount to do the check
We have the pra.mapcount already, and there is no need to call the page_mapped() which may do some complicated computing for compound page. Link: http://lkml.kernel.org/r/20190404054828.2731-1-sjhuang@iluvatar.ai Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Rik van Riel <riel@redhat.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions