Updated host/tools_support.c, changing from page_cache_release() to put_page().
authorAaron Taylor <ataylor@subgeniuskitty.com>
Wed, 28 Apr 2021 23:45:01 +0000 (16:45 -0700)
committerAaron Taylor <ataylor@subgeniuskitty.com>
Wed, 28 Apr 2021 23:45:01 +0000 (16:45 -0700)
See also:

  - https://github.com/torvalds/linux/commit/1fa64f198b9f8d6ec0f7aec7c18dc94684391140

  - https://github.com/torvalds/linux/commit/09cbfeaf1a5a67bfb3201e0c83c810cecb2efa5a

host/tools_support.c

index 93922f8..49d37d4 100644 (file)
@@ -64,7 +64,7 @@ mic_unpin_user_pages(struct page **pages, uint32_t nf_pages)
                for (j = 0; j < nf_pages; j++) {
                        if (pages[j]) {
                                SetPageDirty(pages[j]);
                for (j = 0; j < nf_pages; j++) {
                        if (pages[j]) {
                                SetPageDirty(pages[j]);
-                               page_cache_release(pages[j]);
+                               put_page(pages[j]);
                        }
                }
                kfree(pages);
                        }
                }
                kfree(pages);