]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: Remove all strlen in all xfs_attr_* functions for attr names.
authorAllison Henderson <allison.henderson@oracle.com>
Tue, 7 Jan 2020 23:26:15 +0000 (15:26 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Jan 2020 18:55:19 +0000 (10:55 -0800)
commitd29f781c32b1d1366c8ac10be31dad1e1f39c336
tree0292e2d037a2d2c9019774dfc9dde77ee18f86d7
parent780d29057781d986cd87dbbe232cd02876ad430f
xfs: Remove all strlen in all xfs_attr_* functions for attr names.

This helps to pre-simplify the extra handling of the null terminator in
delayed operations which use memcpy rather than strlen.  Later
when we introduce parent pointers, attribute names will become binary,
so strlen will not work at all.  Removing uses of strlen now will
help reduce complexities later

Signed-off-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr.h
fs/xfs/xfs_acl.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_iops.c
fs/xfs/xfs_xattr.c