From: jianyungao89@gmail.com
To: hch@infradead.org
Cc: linux-xfs@vger.kernel.org, cem@kernel.org, djwong@kernel.org,
sandeen@redhat.com, bfoster@redhat.com, ast@kernel.org,
ishiyama@hpc.is.uec.ac.jp, linux-kernel@vger.kernel.org,
jianyungao89@gmail.com
Subject: [PATCH v2] xfs: remove redundant ASSERT in __xfs_bunmapi
Date: Tue, 1 Dec 2026 09:59:07 +0800 [thread overview]
Message-ID: <20261201015907.9782-1-jianyungao89@gmail.com> (raw)
From: Jianyun Gao <jianyungao89@gmail.com>
The ASSERT right after checking if_format == XFS_DINODE_FMT_BTREE is
tautological. Remove it.
Signed-off-by: Jianyun Gao <jianyungao89@gmail.com>
---
Changes since v1:
- Shorten the commit message and drop the Fixes tag per Christoph Hellwig.
v1: https://lore.kernel.org/lkml/20261127084016.18418-1-jianyungao89@gmail.com/
fs/xfs/libxfs/xfs_bmap.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index dcd5faf3428e..f2627ec2dd24 100644
--- a/fs/xfs/libxfs/xfs_bmap.c
+++ b/fs/xfs/libxfs/xfs_bmap.c
@@ -5166,7 +5166,6 @@ __xfs_bunmapi(
logflags = 0;
if (ifp->if_format == XFS_DINODE_FMT_BTREE) {
- ASSERT(ifp->if_format == XFS_DINODE_FMT_BTREE);
cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
} else
cur = NULL;
--
2.34.1
reply other threads:[~2026-12-01 1:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261201015907.9782-1-jianyungao89@gmail.com \
--to=jianyungao89@gmail.com \
--cc=ast@kernel.org \
--cc=bfoster@redhat.com \
--cc=cem@kernel.org \
--cc=djwong@kernel.org \
--cc=hch@infradead.org \
--cc=ishiyama@hpc.is.uec.ac.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.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
all inboxes | Powered by JetHome®