xfs: open code updating i_mode in xfs_set_acl
authorChristoph Hellwig <hch@lst.de>
Fri, 11 Dec 2020 04:00:39 +0000 (20:00 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 12 Dec 2020 18:49:38 +0000 (10:49 -0800)
commit5d24ec4c7d3c4520b1baec4443ad47b5ae796570
tree51e968af6e3e47625947b9f53007dc356abaeae5
parent26f88363ec78473ab61d29bcbb962c74ae0f1b1a
xfs: open code updating i_mode in xfs_set_acl

Rather than going through the big and hairy xfs_setattr_nonsize function,
just open code a transactional i_mode and i_ctime update.  This allows
to mark xfs_setattr_nonsize and remove the flags argument to it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Gao Xiang <hsiangkao@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_acl.c
fs/xfs/xfs_iops.c
fs/xfs/xfs_iops.h