Skip to content

Commit eacd8fe

Browse files
committed
Revert "mm/gup: reintroduce pin_user_pages_fast_only()"
This reverts commit ef467f3. This helper is no longer used by the FIPS-mode RNG, which was the motivation for reintroducing it. Remove it. Signed-off-by: Sultan Alsawaf <sultan@ciq.com>
1 parent 6186194 commit eacd8fe

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

include/linux/mm.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,8 +2577,6 @@ int get_user_pages_fast(unsigned long start, int nr_pages,
25772577
unsigned int gup_flags, struct page **pages);
25782578
int pin_user_pages_fast(unsigned long start, int nr_pages,
25792579
unsigned int gup_flags, struct page **pages);
2580-
int pin_user_pages_fast_only(unsigned long start, int nr_pages,
2581-
unsigned int gup_flags, struct page **pages);
25822580
void folio_add_pin(struct folio *folio);
25832581

25842582
int account_locked_vm(struct mm_struct *mm, unsigned long pages, bool inc);

mm/gup.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3491,20 +3491,6 @@ int pin_user_pages_fast(unsigned long start, int nr_pages,
34913491
}
34923492
EXPORT_SYMBOL_GPL(pin_user_pages_fast);
34933493

3494-
/*
3495-
* This is the FOLL_PIN equivalent of get_user_pages_fast_only(). Behavior is
3496-
* the same, except that this one sets FOLL_PIN instead of FOLL_GET.
3497-
*/
3498-
int pin_user_pages_fast_only(unsigned long start, int nr_pages,
3499-
unsigned int gup_flags, struct page **pages)
3500-
{
3501-
if (!is_valid_gup_args(pages, NULL, &gup_flags,
3502-
FOLL_PIN | FOLL_FAST_ONLY))
3503-
return -EINVAL;
3504-
return internal_get_user_pages_fast(start, nr_pages, gup_flags, pages);
3505-
}
3506-
EXPORT_SYMBOL_GPL(pin_user_pages_fast_only);
3507-
35083494
/**
35093495
* pin_user_pages_remote() - pin pages of a remote process
35103496
*

0 commit comments

Comments
 (0)