Merge tag 'hwmon-for-v6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / net / 9p / trans_common.c
blobc827f694551cba08e3b5de59ef16224767b8aef7
1 // SPDX-License-Identifier: LGPL-2.1
2 /*
3 * Copyright IBM Corporation, 2010
4 * Author Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
5 */
7 #include <linux/mm.h>
8 #include <linux/module.h>
9 #include "trans_common.h"
11 /**
12 * p9_release_pages - Release pages after the transaction.
13 * @pages: array of pages to be put
14 * @nr_pages: size of array
16 void p9_release_pages(struct page **pages, int nr_pages)
18 int i;
20 for (i = 0; i < nr_pages; i++)
21 if (pages[i])
22 put_page(pages[i]);
24 EXPORT_SYMBOL(p9_release_pages);