linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Nikolay Borisov <nborisov@suse.com>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: Mixed inline and regular extents caused by btrfs/062
Date: Tue, 10 Aug 2021 16:09:40 +0800	[thread overview]
Message-ID: <9d0a719f-2619-aff9-a10c-be03c72ef546@gmx.com> (raw)
In-Reply-To: <2da42f71-b95d-4fb1-be93-be9e58eb1200@suse.com>



On 2021/8/10 下午3:46, Nikolay Borisov wrote:
>
>
> On 10.08.21 г. 8:49, Qu Wenruo wrote:
>> Hi,
>>
>> Although I understand current kernel can handle mixed inline extent with
>> regular extent without problem, but the idea of mixing them is still
>> making me quite unease.
>>
>> Thus I still go testing with modify btrfs-progs to detect such problem,
>> and find out btrfs/062 can cause such mixed extents.
>>
>> Since it's not really causing any on-disk data corruption, but just an
>> inconsistent behavior, I'm wondering do we really need to fix it.
>> (This is also the only reason why subpage has disabled inline extent
>> creation completely, just to prevent such problem).
>>
>> Any idea on whether we should "fix" the behavior?
>
> What do you mean by mixed inline and regular extents?

I mean, one inode has both inlined extent and regular extent.

There is an old btrfs-progs patch to detect such problems:

https://patchwork.kernel.org/project/linux-btrfs/patch/20210504062525.152540-3-wqu@suse.com/


> AFAICS inline
> extents are created when you write at the beginning of the file and the
> size of the write is less than the inline extent threshold? All
> subsequent writes are going to be regular extents.

But with above patch, the following test cases can cause btrfs-check to
report such mixed inline and regular extents:

btrfs/004
btrfs/192
btrfs/195
btrfs/205
generic/269

(Haven't yet to check the reproducibility)

Currently it won't hurt anyone, but I still don't think the mixed
behavior is expected.

Thanks,
Qu
>
>>
>> Thanks,
>> Qu
>>

  reply	other threads:[~2021-08-10  8:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10  5:49 Mixed inline and regular extents caused by btrfs/062 Qu Wenruo
2021-08-10  7:46 ` Nikolay Borisov
2021-08-10  8:09   ` Qu Wenruo [this message]
2021-08-10  8:58     ` Qu Wenruo
2021-08-23 14:43 ` Filipe Manana

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=9d0a719f-2619-aff9-a10c-be03c72ef546@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=nborisov@suse.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).