]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: remove pointless unlocked assertion
authorDarrick J. Wong <djwong@kernel.org>
Tue, 9 Jan 2024 17:39:27 +0000 (09:39 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 10 Apr 2024 00:21:31 +0000 (17:21 -0700)
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>
libxfs/xfs_bmap.c

index 63feb20e24b32629bf6ff1656ed128d39cb12c91..7be0d7be8cd51853e335cd20db501e0a8a8f8582 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));