Linux 5.7.7
[linux/fpc-iii.git] / net / 9p / trans_common.c
blob3dff68f05fb91a38b1e00b5ab7a3ee306265a460
1 /*
2 * Copyright IBM Corporation, 2010
3 * Author Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
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.
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.
15 #include <linux/mm.h>
16 #include <linux/module.h>
17 #include "trans_common.h"
19 /**
20 * p9_release_pages - Release pages after the transaction.
22 void p9_release_pages(struct page **pages, int nr_pages)
24 int i;
26 for (i = 0; i < nr_pages; i++)
27 if (pages[i])
28 put_page(pages[i]);
30 EXPORT_SYMBOL(p9_release_pages);