From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Zhadchenko Date: Mon, 10 Aug 2026 15:29:57 +0300 Subject: [Devel] [PATCH VZ10 3/6] drivers/md/dm-qcow2: fix seek constant comparison In-Reply-To: <20260810123000.19834-1-andrey.zhadchenko@virtuozzo.com> References: <20260810123000.19834-1-andrey.zhadchenko@virtuozzo.com> Message-ID: <20260810123000.19834-4-andrey.zhadchenko@virtuozzo.com> List-Id: This is just an enum, not a mask. https://virtuozzo.atlassian.net/browse/VSTOR-139407 Feature: dm-qcow2: block device over QCOW2 files driver Signed-off-by: Andrey Zhadchenko --- drivers/md/dm-qcow2-map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-qcow2-map.c b/drivers/md/dm-qcow2-map.c index 342e4af688509..d6d15b04215c6 100644 --- a/drivers/md/dm-qcow2-map.c +++ b/drivers/md/dm-qcow2-map.c @@ -4520,7 +4520,7 @@ static int qcow2_llseek_hole_qio(struct qio *qio, int whence, loff_t *result) } } - if (whence & SEEK_HOLE) { + if (whence == SEEK_HOLE) { if (arg.zeroes || arg.unmapped) { *result = to_bytes(qio->bi_iter.bi_sector); ret = 0; @@ -4536,7 +4536,7 @@ static int qcow2_llseek_hole_qio(struct qio *qio, int whence, loff_t *result) } } - if (whence & SEEK_DATA) { + if (whence == SEEK_DATA) { if (!arg.zeroes && !arg.unmapped) { *result = to_bytes(qio->bi_iter.bi_sector); ret = 0; -- 2.43.5