mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Dominique Martinet](/assets/img/avatar_default.png)
- 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>
24 lines
521 B
C
24 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);
|