hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/fs/9p/vfs_addr.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/fs/9p/vfs_addr.c
34 *
....@@ -5,22 +6,6 @@
56 *
67 * Copyright (C) 2005 by Eric Van Hensbergen <ericvh@gmail.com>
78 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2
11
- * as published by the Free Software Foundation.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to:
20
- * Free Software Foundation
21
- * 51 Franklin Street, Fifth Floor
22
- * Boston, MA 02111-1301 USA
23
- *
249 */
2510
2611 #include <linux/module.h>
....@@ -66,7 +51,7 @@
6651 if (retval == 0)
6752 return retval;
6853
69
- iov_iter_bvec(&to, ITER_BVEC | READ, &bvec, 1, PAGE_SIZE);
54
+ iov_iter_bvec(&to, READ, &bvec, 1, PAGE_SIZE);
7055
7156 retval = p9_client_read(fid, page_offset(page), &to, &err);
7257 if (err) {
....@@ -177,7 +162,7 @@
177162 bvec.bv_page = page;
178163 bvec.bv_offset = 0;
179164 bvec.bv_len = len;
180
- iov_iter_bvec(&from, ITER_BVEC | WRITE, &bvec, 1, len);
165
+ iov_iter_bvec(&from, WRITE, &bvec, 1, len);
181166
182167 /* We should have writeback_fid always set */
183168 BUG_ON(!v9inode->writeback_fid);