All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chao Yu <chao@kernel.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: chao@kernel.org, Zorro Lang <zlang@kernel.org>,
	Jan Prusakowski <jprusakowski@google.com>,
	linux-f2fs-devel@lists.sourceforge.net, fstests@vger.kernel.org,
	jaegeuk@kernel.org
Subject: Re: [f2fs-dev] [PATCH] generic/064: allow 50 extents on F2FS after fcollapse
Date: Wed, 22 Jul 2026 09:12:48 +0800	[thread overview]
Message-ID: <1a0bb2ad-c175-4cae-9e3f-79fbf69ce735@kernel.org> (raw)
In-Reply-To: <al3Wcz5pIujPdTrL@infradead.org>

Hi Christoph,

On 7/20/26 16:04, Christoph Hellwig wrote:
> So looking at this explanation and the code, f2fs does not actually
> support COLLAPSE_RANGE at all, but emulates by doing a full data

For non-checkpoint data, we can just update metadata w/o any data copying
to support COLLAPSE_RANGE.

> copy.  What is the point of this and lying to the user that it supports
> and operation that isn't actually supported as the intended metadata
> only swizzle?

I added the fcollapse support long time ago in commit b4ace3370324
("f2fs: support FALLOC_FL_COLLAPSE_RANGE"), and then, a following patch
was committed to fix checkpoint case by copying data.

IIRC, the intention at that time is trying to support modern filesystem
features as many as possible, so while commercializing f2fs filesystem,
it won't break userspace application use if previous filesystem support
the feature.

I just followed manual of fallocate 2 to implement the fcollapse, I didn't
notice fcollapse is a metadata operation only interface, but I may missed
something in manual or discussion conclusion about fcollapse in community,
please let me know if I missed something. :)

Thanks,

WARNING: multiple messages have this Message-ID (diff)
From: Chao Yu via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: Christoph Hellwig <hch@infradead.org>
Cc: Zorro Lang <zlang@kernel.org>,
	fstests@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net,
	jaegeuk@kernel.org
Subject: Re: [f2fs-dev] [PATCH] generic/064: allow 50 extents on F2FS after fcollapse
Date: Wed, 22 Jul 2026 09:12:48 +0800	[thread overview]
Message-ID: <1a0bb2ad-c175-4cae-9e3f-79fbf69ce735@kernel.org> (raw)
In-Reply-To: <al3Wcz5pIujPdTrL@infradead.org>

Hi Christoph,

On 7/20/26 16:04, Christoph Hellwig wrote:
> So looking at this explanation and the code, f2fs does not actually
> support COLLAPSE_RANGE at all, but emulates by doing a full data

For non-checkpoint data, we can just update metadata w/o any data copying
to support COLLAPSE_RANGE.

> copy.  What is the point of this and lying to the user that it supports
> and operation that isn't actually supported as the intended metadata
> only swizzle?

I added the fcollapse support long time ago in commit b4ace3370324
("f2fs: support FALLOC_FL_COLLAPSE_RANGE"), and then, a following patch
was committed to fix checkpoint case by copying data.

IIRC, the intention at that time is trying to support modern filesystem
features as many as possible, so while commercializing f2fs filesystem,
it won't break userspace application use if previous filesystem support
the feature.

I just followed manual of fallocate 2 to implement the fcollapse, I didn't
notice fcollapse is a metadata operation only interface, but I may missed
something in manual or discussion conclusion about fcollapse in community,
please let me know if I missed something. :)

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

  reply	other threads:[~2026-07-22  1:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-22  7:04 [PATCH] generic/064: allow 50 extents on F2FS after fcollapse Jan Prusakowski
2026-06-22  7:04 ` [f2fs-dev] " Jan Prusakowski via Linux-f2fs-devel
2026-06-23  8:46 ` Chao Yu
2026-06-23  8:46   ` Chao Yu via Linux-f2fs-devel
2026-06-24  7:46 ` Christoph Hellwig
2026-06-24  7:46   ` Christoph Hellwig
2026-06-29 16:37   ` [f2fs-dev] " Zorro Lang via Linux-f2fs-devel
2026-06-29 16:37     ` Zorro Lang
2026-06-30 12:09     ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2026-06-30 12:09       ` Chao Yu
2026-07-19  9:24       ` Zorro Lang
2026-07-19  9:24         ` Zorro Lang via Linux-f2fs-devel
2026-07-22  1:22         ` Chao Yu
2026-07-22  1:22           ` Chao Yu via Linux-f2fs-devel
2026-07-20  8:04       ` Christoph Hellwig
2026-07-20  8:04         ` Christoph Hellwig
2026-07-22  1:12         ` Chao Yu [this message]
2026-07-22  1:12           ` Chao Yu via Linux-f2fs-devel
2026-07-22  8:59           ` Christoph Hellwig
2026-07-22  8:59             ` Christoph Hellwig
2026-07-22 12:32             ` Chao Yu
2026-07-22 12:32               ` Chao Yu via Linux-f2fs-devel

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=1a0bb2ad-c175-4cae-9e3f-79fbf69ce735@kernel.org \
    --to=chao@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=hch@infradead.org \
    --cc=jaegeuk@kernel.org \
    --cc=jprusakowski@google.com \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    --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.