![]() |
|
|||
0001 // SPDX-License-Identifier: LGPL-2.1 0002 /* 0003 * Copyright IBM Corporation, 2010 0004 * Author Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> 0005 */ 0006 0007 #include <linux/mm.h> 0008 #include <linux/module.h> 0009 #include "trans_common.h" 0010 0011 /** 0012 * p9_release_pages - Release pages after the transaction. 0013 * @pages: array of pages to be put 0014 * @nr_pages: size of array 0015 */ 0016 void p9_release_pages(struct page **pages, int nr_pages) 0017 { 0018 int i; 0019 0020 for (i = 0; i < nr_pages; i++) 0021 if (pages[i]) 0022 put_page(pages[i]); 0023 } 0024 EXPORT_SYMBOL(p9_release_pages);
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |