]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: only allocate the buffer size actually needed in __xfs_set_acl
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Feb 2020 01:30:44 +0000 (17:30 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:55 +0000 (20:55 -0800)
commitd129392748db4f17d342280da02649e4eb819c9c
tree5eea9997b9cda376fcd98a84a1d9f79ce84f699b
parentd681d93cb4d6efa77d482654bd220f706517d0bc
xfs: only allocate the buffer size actually needed in __xfs_set_acl

No need to allocate the max size if we can just allocate the easily
known actual ACL size.

Suggested-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@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