]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: remove a duplicate assert in xfs_setattr_size
authorChristoph Hellwig <hch@lst.de>
Mon, 30 Mar 2026 13:15:59 +0000 (15:15 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 7 Apr 2026 11:03:52 +0000 (13:03 +0200)
There already is an assert that checks for uid and gid changes besides a
lot of others at the beginning of the function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_iops.c

index 208543e57edad3a04cc0f49806f41925cfbd5a3a..b0256a4a8aa810bedba53423c838ed995229778b 100644 (file)
@@ -1109,7 +1109,6 @@ xfs_setattr_size(
                xfs_inode_clear_eofblocks_tag(ip);
        }
 
-       ASSERT(!(iattr->ia_valid & (ATTR_UID | ATTR_GID)));
        setattr_copy(idmap, inode, iattr);
        xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);