From: Alan Huang <mmpgouride@gmail.com>
To: kent.overstreet@linux.dev
Cc: linux-bcachefs@vger.kernel.org, Alan Huang <mmpgouride@gmail.com>
Subject: [PATCH] bcachefs: Use uncompressed_size as the operand
Date: Mon, 10 Feb 2025 11:04:21 +0800 [thread overview]
Message-ID: <20250210030422.711912-1-mmpgouride@gmail.com> (raw)
Since we don't merge compressed extents, uncompressed_size should be
equal to compressed_size, use uncompressed_size to clarify the intention.
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
---
fs/bcachefs/extents.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/bcachefs/extents.c b/fs/bcachefs/extents.c
index 05d5f71a7ca9..eeea23d09b9a 100644
--- a/fs/bcachefs/extents.c
+++ b/fs/bcachefs/extents.c
@@ -326,7 +326,7 @@ bool bch2_extent_merge(struct bch_fs *c, struct bkey_s l, struct bkey_s_c r)
!bch2_checksum_mergeable(lp.crc.csum_type))
return false;
- if (lp.crc.offset + lp.crc.live_size != lp.crc.compressed_size ||
+ if (lp.crc.offset + lp.crc.live_size != lp.crc.uncompressed_size ||
rp.crc.offset)
return false;
--
2.47.0
next reply other threads:[~2025-02-10 3:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-10 3:04 Alan Huang [this message]
2025-02-10 3:04 ` [PATCH] bcachefs: Fix use after free Alan Huang
2025-02-10 16:28 ` Kent Overstreet
2025-02-10 16:54 ` Alan Huang
2025-02-10 22:20 ` Kent Overstreet
2025-02-10 16:25 ` [PATCH] bcachefs: Use uncompressed_size as the operand Kent Overstreet
2025-02-10 17:02 ` Alan Huang
2025-02-10 22:02 ` Kent Overstreet
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=20250210030422.711912-1-mmpgouride@gmail.com \
--to=mmpgouride@gmail.com \
--cc=kent.overstreet@linux.dev \
--cc=linux-bcachefs@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox