]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/gpu/drm/via: convert put_page() to put_user_page*()
authorJohn Hubbard <jhubbard@nvidia.com>
Mon, 23 Sep 2019 22:35:07 +0000 (15:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2019 22:54:08 +0000 (15:54 -0700)
commitc8c8f464d45945c690289183d25d1381f43ab4fb
tree2387c5b11f0a1ff268731bfa88ad392e73924659
parent155ea11403a3d2c03ad6275bc9202e8d470a30b4
drivers/gpu/drm/via: convert put_page() to put_user_page*()

For pages that were retained via get_user_pages*(), release those pages
via the new put_user_page*() routines, instead of via put_page() or
release_pages().

This is part a tree-wide conversion, as described in 2b72bb038d6c ("mm:
introduce put_user_page*(), placeholder versions").

Also reverse the order of a comparison, in order to placate checkpatch.pl.

Link: http://lkml.kernel.org/r/20190724044537.10458-3-jhubbard@nvidia.com
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/via/via_dmablit.c