Merge tag 'sound-5.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[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>
52ad259e 17#include "trans_common.h"
022cae36
VJJ
18
19/**
4a026da9 20 * p9_release_pages - Release pages after the transaction.
022cae36 21 */
abfa034e 22void p9_release_pages(struct page **pages, int nr_pages)
022cae36 23{
110ecd69
SL
24 int i;
25
26 for (i = 0; i < nr_pages; i++)
27 if (pages[i])
28 put_page(pages[i]);
022cae36 29}
abfa034e 30EXPORT_SYMBOL(p9_release_pages);