Updated micscif/micscif_rma.c from page_cache_release() to put_page().
[xeon-phi-kernel-module] / micscif / micscif_rma.c
index 9c6de2e..870746c 100644 (file)
@@ -413,7 +413,7 @@ int micscif_destroy_pinned_pages(struct scif_pinned_pages *pinned_pages)
                                BUG_ON(!page_count(pinned_pages->pages[j]));
                                BUG_ON(atomic_long_sub_return(1, &ms_info.rma_pin_cnt) < 0);
 #endif
                                BUG_ON(!page_count(pinned_pages->pages[j]));
                                BUG_ON(atomic_long_sub_return(1, &ms_info.rma_pin_cnt) < 0);
 #endif
-                               page_cache_release(pinned_pages->pages[j]);
+                               put_page(pinned_pages->pages[j]);
                        }
                }
        }
                        }
                }
        }