Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/net/9p/trans_common.c
26282 views
1
// SPDX-License-Identifier: LGPL-2.1
2
/*
3
* Copyright IBM Corporation, 2010
4
* Author Venkateswararao Jujjuri <[email protected]>
5
*/
6
7
#include <linux/mm.h>
8
#include <linux/module.h>
9
#include "trans_common.h"
10
11
/**
12
* p9_release_pages - Release pages after the transaction.
13
* @pages: array of pages to be put
14
* @nr_pages: size of array
15
*/
16
void p9_release_pages(struct page **pages, int nr_pages)
17
{
18
int i;
19
20
for (i = 0; i < nr_pages; i++)
21
if (pages[i])
22
put_page(pages[i]);
23
}
24
EXPORT_SYMBOL(p9_release_pages);
25
26