Merge branches 'acpi-resources', 'acpi-battery', 'acpi-doc' and 'acpi-pnp'
[linux-2.6-block.git] / net / 9p / trans_common.c
CommitLineData
022cae36
VJJ
1/*
2 * Copyright IBM Corporation, 2010
3 * Author Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2.1 of the GNU Lesser General Public License
7 * as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 *
13 */
14
dcdbd7b2 15#include <linux/mm.h>
022cae36 16#include <linux/module.h>
022cae36
VJJ
17
18/**
19 * p9_release_req_pages - Release pages after the transaction.
022cae36 20 */
abfa034e 21void p9_release_pages(struct page **pages, int nr_pages)
022cae36 22{
110ecd69
SL
23 int i;
24
25 for (i = 0; i < nr_pages; i++)
26 if (pages[i])
27 put_page(pages[i]);
022cae36 28}
abfa034e 29EXPORT_SYMBOL(p9_release_pages);