All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ding Feng" <dingf3ng@gmail.com>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH v2] generic: punch a hole past EOF over preallocated blocks
Date: Thu, 03 Dec 2026 12:01:13 +0000	[thread overview]
Message-ID: <sashiko-outbox-247690@kernel.org> (raw)
In-Reply-To: <20261203115229.50163-1-dingf3ng@gmail.com>

> Blocks that fallocate(FALLOC_FL_KEEP_SIZE) allocates past EOF should be
> freed by a later FALLOC_FL_PUNCH_HOLE over them; fallocate(2) says whole
> blocks in the range are removed. XFS and tmpfs do so. ext4 returns
> early for a hole that starts at or past i_size and leaves them allocated.
> 
> Write one block, preallocate 16 blocks with KEEP_SIZE, punch the 15
> blocks past EOF, and check with fiemap that no extent is left there, and
> that the size and the data below EOF are unchanged.
> 
> Signed-off-by: Ding Feng <dingf3ng@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203115229.50163-1-dingf3ng@gmail.com?part=1

      reply	other threads:[~2026-12-03 12:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 11:52 [PATCH v2] generic: punch a hole past EOF over preallocated blocks Ding Feng
2026-12-03 12:01 ` sashiko-bot [this message]

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=sashiko-outbox-247690@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dingf3ng@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tytso@mit.edu \
    /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.