From: Aaron Taylor Date: Sun, 2 May 2021 04:31:27 +0000 (-0700) Subject: Updated micscif/miscif_api.c from page_cache_release() to put_page(). X-Git-Tag: first-build~8 X-Git-Url: https://git.subgeniuskitty.com/xeon-phi-kernel-module/.git/commitdiff_plain/afe5b8be618e786124f5f08b83efd643233356f2 Updated micscif/miscif_api.c from page_cache_release() to put_page(). See also: - https://github.com/torvalds/linux/commit/1fa64f198b9f8d6ec0f7aec7c18dc94684391140 - https://github.com/torvalds/linux/commit/09cbfeaf1a5a67bfb3201e0c83c810cecb2efa5a --- diff --git a/micscif/micscif_api.c b/micscif/micscif_api.c index d86cb05..c5dff5c 100644 --- a/micscif/micscif_api.c +++ b/micscif/micscif_api.c @@ -2004,7 +2004,7 @@ retry: /* Roll back any pinned pages */ for (i = 0; i < pinned_pages->nr_pages; i++) { if (pinned_pages->pages[i]) - page_cache_release(pinned_pages->pages[i]); + put_page(pinned_pages->pages[i]); } prot &= ~SCIF_PROT_WRITE; try_upgrade = false;