All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pankaj Raghav <pankaj.raghav@linux.dev>
To: Zhang Yi <yi.zhang@huaweicloud.com>,
	Pankaj Raghav <p.raghav@samsung.com>,
	zlang@kernel.org
Cc: linux-xfs@vger.kernel.org, hch@lst.de, fstests@vger.kernel.org,
	djwong@kernel.org, yi.zhang@huawei.com,
	Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH v2] generic/795: add unaligned boundary test cases for WRITE_ZEROES
Date: Mon, 13 Jul 2026 09:28:31 +0200	[thread overview]
Message-ID: <58ef1a46-799a-403c-8b7b-1d9656a015b6@linux.dev> (raw)
In-Reply-To: <1adabe60-17d5-49ff-a6e6-33f90debf6fe@huaweicloud.com>

On 7/10/26 10:23, Zhang Yi wrote:
> +CC ext4 list
> 
> On 7/9/2026 4:30 PM, Pankaj Raghav wrote:
>> During the review of WRITE_ZEROES support to XFS, Zhang Yi pointed out
>> some important semantics for the boundary blocks when WRITE_ZEROES
>> command is used.[1]
>>
>> The test cases check the boundary blocks when they are in different
>> states and WRITE_ZEROES are issued that straddle the boundary. Along with that,
>> test cases have been added when a EoF straddles an allocation unit.
>>
>> [1] https://lore.kernel.org/linux-xfs/0b7f1a4f-da1c-4297-8099-98d738070ab7@huaweicloud.com/
>>
>> Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
> 
> Thank you for the test! The changes look good to me, and it works well
> with my ext4 fixes as well.
> 
> Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
> 

Thanks.

> Unfortunately, I've found a bug in filefrag that causes delalloc extents
> to be reported with a length of 0. This means this test case can miss
> delalloc extents. The issue is in misc/filefrag.c's print_extent_info(),
> where ext_len is incorrectly set to 0 for the FIEMAP_EXTENT_UNKNOWN or
> EXT4_FIEMAP_EXTENT_HOLE cases. Could you please send a patch to fix this
> as well?
>


I think I see it here:
	if ((fm_extent->fe_flags & FIEMAP_EXTENT_UNKNOWN) ||
	    (fm_extent->fe_flags & EXT4_FIEMAP_EXTENT_HOLE)) {
		ext_len = 0;
		ext_blks_phys = 0;
	} else
		ext_blks_phys = ext_blks;

I will send a fix soon as a separate patch.

--
Pankaj

  reply	other threads:[~2026-07-13  7:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09  8:30 [PATCH v2] generic/795: add unaligned boundary test cases for WRITE_ZEROES Pankaj Raghav
2026-07-10  8:23 ` Zhang Yi
2026-07-13  7:28   ` Pankaj Raghav [this message]
2026-07-13 10:04   ` Christoph Hellwig
2026-07-13 13:21     ` Pankaj Raghav
2026-07-13 13:34       ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58ef1a46-799a-403c-8b7b-1d9656a015b6@linux.dev \
    --to=pankaj.raghav@linux.dev \
    --cc=djwong@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=hch@lst.de \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=p.raghav@samsung.com \
    --cc=yi.zhang@huawei.com \
    --cc=yi.zhang@huaweicloud.com \
    --cc=zlang@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.