Files
linux/include/linux
John Hubbard 420c2091b6 mm/gup: introduce pin_user_pages_locked()
Patch series "mm/gup: introduce pin_user_pages_locked(), use it in frame_vector.c", v2.

This adds yet one more pin_user_pages*() variant, and uses that to
convert mm/frame_vector.c.

With this, along with maybe 20 or 30 other recent patches in various
trees, we are close to having the relevant gup call sites
converted--with the notable exception of the bio/block layer.

This patch (of 2):

Introduce pin_user_pages_locked(), which is nearly identical to
get_user_pages_locked() except that it sets FOLL_PIN and rejects
FOLL_GET.

As with other pairs of get_user_pages*() and pin_user_pages() API calls,
it's prudent to assert that FOLL_PIN is *not* set in the
get_user_pages*() call, so add that as part of this.

[jhubbard@nvidia.com: v2]
  Link: http://lkml.kernel.org/r/20200531234131.770697-2-jhubbard@nvidia.com

Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Jan Kara <jack@suse.cz>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Souptick Joarder <jrdr.linux@gmail.com>
Link: http://lkml.kernel.org/r/20200531234131.770697-1-jhubbard@nvidia.com
Link: http://lkml.kernel.org/r/20200527223243.884385-1-jhubbard@nvidia.com
Link: http://lkml.kernel.org/r/20200527223243.884385-2-jhubbard@nvidia.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-08 11:05:56 -07:00
..
2019-12-11 09:12:38 +01:00
2019-11-12 11:43:29 -05:00
2020-05-09 16:15:13 -06:00
2020-05-19 09:40:29 -06:00
2020-04-10 15:36:21 -07:00
2019-06-12 20:27:13 +02:00
2020-01-23 00:35:50 +01:00
2020-05-13 08:44:35 -07:00
2019-10-09 19:33:43 -07:00
2020-03-09 11:12:19 +01:00
2019-12-03 11:20:37 +01:00
2020-02-17 13:37:00 +01:00
2019-02-28 03:28:53 -05:00
2020-05-04 11:19:58 -07:00
2020-01-18 09:19:18 -05:00
2018-12-19 10:42:08 +01:00
2020-03-06 11:06:15 +01:00
2019-02-15 16:54:38 +01:00
2020-05-28 07:59:45 -07:00
2019-06-26 13:19:46 -07:00
2020-04-30 12:54:01 -07:00
2019-10-04 12:31:46 -07:00
2019-10-15 13:34:25 +02:00
2020-05-18 10:30:21 +01:00
2019-06-10 13:00:24 +02:00
2019-12-04 19:44:14 -08:00
2020-06-02 15:15:46 +01:00
2019-12-11 09:12:38 +01:00
2019-09-02 11:43:54 +01:00
2020-05-08 18:18:11 +01:00
2020-05-08 00:12:42 +02:00
2020-05-28 10:31:09 +02:00
2019-03-07 18:32:03 -08:00
2020-03-06 11:56:59 +01:00
2020-04-07 10:43:38 -07:00
2020-06-08 11:05:56 -07:00
2019-12-09 10:55:03 +01:00
2020-05-14 16:44:24 +02:00
2019-08-14 15:30:35 +02:00
2020-03-21 16:00:24 +01:00
2019-11-14 19:06:47 -08:00
2020-01-15 10:54:33 -05:00
2020-05-09 13:57:12 +02:00
2019-06-13 09:02:33 -04:00
2019-02-20 07:22:10 -07:00
2019-02-08 15:02:49 -08:00
2020-04-02 09:35:27 -07:00
2020-04-07 10:43:38 -07:00
2020-05-15 13:51:28 -07:00
2020-01-15 16:30:28 +00:00
2020-06-04 12:59:11 -05:00
2019-07-16 19:23:25 -07:00
2020-05-09 13:57:12 +02:00
2019-06-15 12:25:49 +02:00
2020-01-13 18:16:43 -08:00
2020-03-21 16:00:24 +01:00
2020-06-04 19:06:20 -07:00
2020-02-21 10:31:18 +01:00
2019-05-16 15:51:55 -07:00
2020-03-21 16:00:24 +01:00
2020-05-17 14:10:07 -06:00
2020-05-14 16:44:24 +02:00
2019-02-07 16:38:35 +01:00
2020-05-14 16:44:25 +02:00
2020-04-28 11:05:44 +02:00
2020-05-28 11:11:45 -07:00
2020-05-04 09:16:37 -07:00
2020-02-21 11:22:15 -08:00
2019-01-11 18:05:40 -08:00
2020-01-14 12:20:48 +01:00
2020-03-23 17:01:47 +01:00
2020-04-17 06:05:30 -04:00
2020-04-01 12:06:26 -04:00
2020-04-17 06:05:30 -04:00
2019-11-14 12:20:02 +08:00
2019-05-15 17:35:54 +01:00