From: Christoph Hellwig Date: Mon, 30 Mar 2026 13:15:59 +0000 (+0200) Subject: xfs: remove a duplicate assert in xfs_setattr_size X-Git-Tag: v7.1-rc1~225^2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f7d2a9e020812a787d7c6dfc98715f9c8f72f53;p=thirdparty%2Fkernel%2Flinux.git xfs: remove a duplicate assert in xfs_setattr_size 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 Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 208543e57edad..b0256a4a8aa81 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -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);