aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-02-04 09:24:26 -0500
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-03-21 12:56:34 -0400
commit8ea2979c1444cd455ddbe7f976de79cc09fdc38d (patch)
tree984f8232835647aab7eb9501927174c03fd2c72c /mm/hugetlb.c
parentmm: build migrate_vma_* for all configs with ZONE_DEVICE support (diff)
downloadlinux-dev-8ea2979c1444cd455ddbe7f976de79cc09fdc38d.tar.xz
linux-dev-8ea2979c1444cd455ddbe7f976de79cc09fdc38d.zip
mm/gup: Increment the page refcount before the pincount
We should always increase the refcount before doing anything else to the page so that other page users see the elevated refcount first. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: John Hubbard <jhubbard@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions