]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove pointless unlocked assertion
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:51 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:03 +0000 (17:01 -0700)
Source kernel commit: 13db7007892694c891fc37feccbd2ac8f227af78

Remove this assertion about the inode not having an attr fork from
xfs_bmap_add_attrfork because the function handles that case just fine.
Weirder still, the function actually /requires/ the caller not to hold
the ILOCK, which means that its accesses are not stabilized.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap.c

index 81dccf275cbc823b37835419d715fad0aaeeaa37..4cd0ffa421bfad3967fce06453f524e820b24aa8 100644 (file)
@@ -1035,8 +1035,6 @@ xfs_bmap_add_attrfork(
        int                     logflags;       /* logging flags */
        int                     error;          /* error return value */
 
-       ASSERT(xfs_inode_has_attr_fork(ip) == 0);
-
        mp = ip->i_mount;
        ASSERT(!XFS_NOT_DQATTACHED(mp, ip));