summaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-02-27 04:30:32 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2020-03-03 07:55:52 +0300
commit4df28c64e4388ac5fa59cd58f9fd6592aae533a2 (patch)
tree6df77ecb667b0f1f5fc412aeef54685c71cdd830 /fs/xfs
parent79f2280b9bfd54aa37b3fa4a80b0037bd29b4f0e (diff)
downloadlinux-4df28c64e4388ac5fa59cd58f9fd6592aae533a2.tar.xz
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/libxfs/xfs_attr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.c b/fs/xfs/libxfs/xfs_attr.c
index a968158b9bb1..f887d62e0956 100644
--- a/fs/xfs/libxfs/xfs_attr.c
+++ b/fs/xfs/libxfs/xfs_attr.c
@@ -72,9 +72,6 @@ xfs_attr_args_init(
args->flags = flags;
args->name = name;
args->namelen = namelen;
- if (args->namelen >= MAXNAMELEN)
- return -EFAULT; /* match IRIX behaviour */
-
args->hashval = xfs_da_hashname(args->name, args->namelen);
return 0;
}