mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
024b7d6a43
- add missing SPDX-License-Identifier - remove (sometimes incorrect) file name from file header Link: http://lkml.kernel.org/r/20211102134608.1588018-2-dominique.martinet@atmark-techno.com Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
25 lines
521 B
C
25 lines
521 B
C
// SPDX-License-Identifier: LGPL-2.1
|
|
/*
|
|
* Copyright IBM Corporation, 2010
|
|
* Author Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
|
|
*/
|
|
|
|
#include <linux/mm.h>
|
|
#include <linux/module.h>
|
|
#include "trans_common.h"
|
|
|
|
/**
|
|
* p9_release_pages - Release pages after the transaction.
|
|
* @pages: array of pages to be put
|
|
* @nr_pages: size of array
|
|
*/
|
|
void p9_release_pages(struct page **pages, int nr_pages)
|
|
{
|
|
int i;
|
|
|
|
for (i = 0; i < nr_pages; i++)
|
|
if (pages[i])
|
|
put_page(pages[i]);
|
|
}
|
|
EXPORT_SYMBOL(p9_release_pages);
|