Skip to content

Commit 82f9db2

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 e441a2f commit 82f9db2

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
@@ -2571,8 +2571,6 @@ int get_user_pages_fast(unsigned long start, int nr_pages,
25712571
unsigned int gup_flags, struct page **pages);
25722572
int pin_user_pages_fast(unsigned long start, int nr_pages,
25732573
unsigned int gup_flags, struct page **pages);
2574-
int pin_user_pages_fast_only(unsigned long start, int nr_pages,
2575-
unsigned int gup_flags, struct page **pages);
25762574
void folio_add_pin(struct folio *folio);
25772575

25782576
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
@@ -3359,20 +3359,6 @@ int pin_user_pages_fast(unsigned long start, int nr_pages,
33593359
}
33603360
EXPORT_SYMBOL_GPL(pin_user_pages_fast);
33613361

3362-
/*
3363-
* This is the FOLL_PIN equivalent of get_user_pages_fast_only(). Behavior is
3364-
* the same, except that this one sets FOLL_PIN instead of FOLL_GET.
3365-
*/
3366-
int pin_user_pages_fast_only(unsigned long start, int nr_pages,
3367-
unsigned int gup_flags, struct page **pages)
3368-
{
3369-
if (!is_valid_gup_args(pages, NULL, &gup_flags,
3370-
FOLL_PIN | FOLL_FAST_ONLY))
3371-
return -EINVAL;
3372-
return internal_get_user_pages_fast(start, nr_pages, gup_flags, pages);
3373-
}
3374-
EXPORT_SYMBOL_GPL(pin_user_pages_fast_only);
3375-
33763362
/**
33773363
* pin_user_pages_remote() - pin pages of a remote process
33783364
*

0 commit comments

Comments
 (0)