Skip to content

Commit 0f7d2a9

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
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 <hch@lst.de> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent 7338419 commit 0f7d2a9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/xfs/xfs_iops.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,6 @@ xfs_setattr_size(
11091109
xfs_inode_clear_eofblocks_tag(ip);
11101110
}
11111111

1112-
ASSERT(!(iattr->ia_valid & (ATTR_UID | ATTR_GID)));
11131112
setattr_copy(idmap, inode, iattr);
11141113
xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
11151114

0 commit comments

Comments
 (0)