OSDN Git Service

xfs: remove the MAXNAMELEN check from xfs_attr_args_init
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Feb 2020 01:30:32 +0000 (17:30 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:52 +0000 (20:55 -0800)
commit4df28c64e4388ac5fa59cd58f9fd6592aae533a2
tree6df77ecb667b0f1f5fc412aeef54685c71cdd830
parent79f2280b9bfd54aa37b3fa4a80b0037bd29b4f0e
xfs: remove the MAXNAMELEN check from xfs_attr_args_init

All the callers already check the length when allocating the
in-kernel xattrs buffers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr.c