[Devel] [PATCH RH8 2/2] ploop: Kill ITER_BVEC from arguments iov_iter_bvec()

Kirill Tkhai ktkhai at virtuozzo.com
Fri Mar 19 18:50:55 MSK 2021


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 at virtuozzo.com>
---
 drivers/md/dm-ploop-bat.c |    2 +-
 drivers/md/dm-ploop-map.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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);




More information about the Devel mailing list