[Devel] [PATCH RHEL9 COMMIT] dm-qcow2: Remove arg in parse_metadata()
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Mar 24 00:23:58 MSK 2022
The commit is pushed to "branch-rh9-5.14.0-42.vz9.14.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-42.vz9.14.4
------>
commit dd6d75e49657601b071c74af223efd00beba379d
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Thu Mar 24 00:23:58 2022 +0300
dm-qcow2: Remove arg in parse_metadata()
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
Feature: dm-qcow2: block device over QCOW2 files driver
---
drivers/md/dm-qcow2-map.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/md/dm-qcow2-map.c b/drivers/md/dm-qcow2-map.c
index 4edd63e47a3d..6a600b1c870f 100644
--- a/drivers/md/dm-qcow2-map.c
+++ b/drivers/md/dm-qcow2-map.c
@@ -1924,8 +1924,9 @@ static int handle_r1r2_maps(struct qcow2 *qcow2, loff_t pos, struct qio **qio,
* till some event: reading of md page, end of writeback, etc.
*/
static int parse_metadata(struct qcow2 *qcow2, struct qio **qio,
- struct qcow2_map *map, bool write)
+ struct qcow2_map *map)
{
+ bool write = op_is_write((*qio)->bi_op);
struct md_page *md;
u64 pos;
s64 ret;
@@ -3239,7 +3240,7 @@ static int handle_metadata(struct qcow2 *qcow2, struct qio **qio,
bool write = op_is_write((*qio)->bi_op);
int ret;
- ret = parse_metadata(qcow2, qio, map, write);
+ ret = parse_metadata(qcow2, qio, map);
if (ret < 0 || !*qio) /* Error or postponed */
goto check_err;
More information about the Devel
mailing list