| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/fs/9p/vfs_addr.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (C) 2005 by Eric Van Hensbergen <ericvh@gmail.com> |
|---|
| 7 | 8 | * 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 | | - * |
|---|
| 24 | 9 | */ |
|---|
| 25 | 10 | |
|---|
| 26 | 11 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 66 | 51 | if (retval == 0) |
|---|
| 67 | 52 | return retval; |
|---|
| 68 | 53 | |
|---|
| 69 | | - iov_iter_bvec(&to, ITER_BVEC | READ, &bvec, 1, PAGE_SIZE); |
|---|
| 54 | + iov_iter_bvec(&to, READ, &bvec, 1, PAGE_SIZE); |
|---|
| 70 | 55 | |
|---|
| 71 | 56 | retval = p9_client_read(fid, page_offset(page), &to, &err); |
|---|
| 72 | 57 | if (err) { |
|---|
| .. | .. |
|---|
| 177 | 162 | bvec.bv_page = page; |
|---|
| 178 | 163 | bvec.bv_offset = 0; |
|---|
| 179 | 164 | bvec.bv_len = len; |
|---|
| 180 | | - iov_iter_bvec(&from, ITER_BVEC | WRITE, &bvec, 1, len); |
|---|
| 165 | + iov_iter_bvec(&from, WRITE, &bvec, 1, len); |
|---|
| 181 | 166 | |
|---|
| 182 | 167 | /* We should have writeback_fid always set */ |
|---|
| 183 | 168 | BUG_ON(!v9inode->writeback_fid); |
|---|