* [PATCH v2] xfs: remove redundant ASSERT in __xfs_bunmapi
@ 2026-12-01 1:59 jianyungao89
2026-12-01 8:08 ` Christoph Hellwig
2026-12-01 11:38 ` Carlos Maiolino
0 siblings, 2 replies; 3+ messages in thread
From: jianyungao89 @ 2026-12-01 1:59 UTC (permalink / raw)
To: hch
Cc: linux-xfs, cem, djwong, sandeen, bfoster, ast, ishiyama,
linux-kernel, jianyungao89
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] xfs: remove redundant ASSERT in __xfs_bunmapi
2026-12-01 1:59 [PATCH v2] xfs: remove redundant ASSERT in __xfs_bunmapi jianyungao89
@ 2026-12-01 8:08 ` Christoph Hellwig
2026-12-01 11:38 ` Carlos Maiolino
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2026-12-01 8:08 UTC (permalink / raw)
To: jianyungao89
Cc: hch, linux-xfs, cem, djwong, sandeen, bfoster, ast, ishiyama,
linux-kernel
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] xfs: remove redundant ASSERT in __xfs_bunmapi
2026-12-01 1:59 [PATCH v2] xfs: remove redundant ASSERT in __xfs_bunmapi jianyungao89
2026-12-01 8:08 ` Christoph Hellwig
@ 2026-12-01 11:38 ` Carlos Maiolino
1 sibling, 0 replies; 3+ messages in thread
From: Carlos Maiolino @ 2026-12-01 11:38 UTC (permalink / raw)
To: hch, jianyungao89
Cc: linux-xfs, djwong, sandeen, bfoster, ast, ishiyama, linux-kernel
On Tue, 01 Dec 2026 09:59:07 +0800, jianyungao89@gmail.com wrote:
> The ASSERT right after checking if_format == XFS_DINODE_FMT_BTREE is
> tautological. Remove it.
>
>
Applied to for-next, thanks!
[1/1] xfs: remove redundant ASSERT in __xfs_bunmapi
commit: 9abc9fcdaa81e20677c15210f128870fdc574d78
Best regards,
--
Carlos Maiolino <cem@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-01 11:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 1:59 [PATCH v2] xfs: remove redundant ASSERT in __xfs_bunmapi jianyungao89
2026-12-01 8:08 ` Christoph Hellwig
2026-12-01 11:38 ` Carlos Maiolino
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®