[RHEL8,COMMIT] ploop: Kill ITER_BVEC from arguments iov_iter_bvec()

Submitted by Konstantin Khorenko on March 19, 2021, 4:03 p.m.

Details

Message ID 202103191603.12JG3Hk7905725@finist-co8.sw.ru
State New
Series "Series without cover letter"
Headers show

Commit Message

Konstantin Khorenko March 19, 2021, 4:03 p.m.
The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.9
------>
commit e11d32ca3b432032ad9bb4e67a2149c03c6d5cf4
Author: Kirill Tkhai <ktkhai@virtuozzo.com>
Date:   Fri Mar 19 19:03:17 2021 +0300

    ploop: Kill ITER_BVEC from arguments iov_iter_bvec()
    
    After some past-recent rebases iov_iter_bvec()
    does not require ITER_BVEC pointing. Kill it
    and stop warning message about that.
    
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 drivers/md/dm-ploop-bat.c | 2 +-
 drivers/md/dm-ploop-map.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/md/dm-ploop-bat.c b/drivers/md/dm-ploop-bat.c
index 3fcdf248c490..ee7150f5ae80 100644
--- a/drivers/md/dm-ploop-bat.c
+++ b/drivers/md/dm-ploop-bat.c
@@ -361,7 +361,7 @@  int ploop_read_delta_metadata(struct ploop *ploop, struct file *file,
 		bvec.bv_len = PAGE_SIZE;
 		bvec.bv_offset = 0;
 
-		iov_iter_bvec(&iter, READ|ITER_BVEC, &bvec, 1, bvec.bv_len);
+		iov_iter_bvec(&iter, READ, &bvec, 1, bvec.bv_len);
 		pos = i << PAGE_SHIFT;
 
 		len = vfs_iter_read(file, &iter, &pos, 0);
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index 39194cb2d7fe..ea515d928bd7 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -940,7 +940,7 @@  static void submit_delta_read(struct ploop *ploop, unsigned int level,
 	bvec = __bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter);
 	offset = bio->bi_iter.bi_bvec_done;
 
-	iov_iter_bvec(&iter, READ|ITER_BVEC, bvec, 1, bio->bi_iter.bi_size);
+	iov_iter_bvec(&iter, READ, bvec, 1, bio->bi_iter.bi_size);
 	iter.iov_offset = offset;
 
 	pos = (bio->bi_iter.bi_sector << SECTOR_SHIFT);