| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /******************************************************************************* |
|---|
| 2 | 3 | * Filename: target_core_file.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * (c) Copyright 2005-2013 Datera, Inc. |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * Nicholas A. Bellinger <nab@kernel.org> |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 12 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 13 | | - * (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | | - * GNU General Public License for more details. |
|---|
| 19 | | - * |
|---|
| 20 | | - * You should have received a copy of the GNU General Public License |
|---|
| 21 | | - * along with this program; if not, write to the Free Software |
|---|
| 22 | | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 23 | 10 | * |
|---|
| 24 | 11 | ******************************************************************************/ |
|---|
| 25 | 12 | |
|---|
| .. | .. |
|---|
| 303 | 290 | len += sg->length; |
|---|
| 304 | 291 | } |
|---|
| 305 | 292 | |
|---|
| 306 | | - iov_iter_bvec(&iter, ITER_BVEC | is_write, bvec, sgl_nents, len); |
|---|
| 293 | + iov_iter_bvec(&iter, is_write, bvec, sgl_nents, len); |
|---|
| 307 | 294 | |
|---|
| 308 | 295 | aio_cmd->cmd = cmd; |
|---|
| 309 | 296 | aio_cmd->len = len; |
|---|
| .. | .. |
|---|
| 353 | 340 | len += sg->length; |
|---|
| 354 | 341 | } |
|---|
| 355 | 342 | |
|---|
| 356 | | - iov_iter_bvec(&iter, ITER_BVEC, bvec, sgl_nents, len); |
|---|
| 343 | + iov_iter_bvec(&iter, READ, bvec, sgl_nents, len); |
|---|
| 357 | 344 | if (is_write) |
|---|
| 358 | 345 | ret = vfs_iter_write(fd, &iter, &pos, 0); |
|---|
| 359 | 346 | else |
|---|
| .. | .. |
|---|
| 490 | 477 | len += se_dev->dev_attrib.block_size; |
|---|
| 491 | 478 | } |
|---|
| 492 | 479 | |
|---|
| 493 | | - iov_iter_bvec(&iter, ITER_BVEC, bvec, nolb, len); |
|---|
| 480 | + iov_iter_bvec(&iter, READ, bvec, nolb, len); |
|---|
| 494 | 481 | ret = vfs_iter_write(fd_dev->fd_file, &iter, &pos, 0); |
|---|
| 495 | 482 | |
|---|
| 496 | 483 | kfree(bvec); |
|---|
| .. | .. |
|---|
| 969 | 956 | MODULE_DESCRIPTION("TCM FILEIO subsystem plugin"); |
|---|
| 970 | 957 | MODULE_AUTHOR("nab@Linux-iSCSI.org"); |
|---|
| 971 | 958 | MODULE_LICENSE("GPL"); |
|---|
| 959 | +MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); |
|---|
| 972 | 960 | |
|---|
| 973 | 961 | module_init(fileio_module_init); |
|---|
| 974 | 962 | module_exit(fileio_module_exit); |
|---|