]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: Remove all strlen in all xfs_attr_* functions for attr names.
authorAllison Henderson <allison.henderson@oracle.com>
Sat, 14 Mar 2020 02:59:48 +0000 (22:59 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 14 Mar 2020 02:59:48 +0000 (22:59 -0400)
commitbbe48258e877ff0e1a694975b68a878dc072610b
tree2960f4d696cbb6689ac6730f3b3b2b8124a93d2a
parent804b760ddc131efedddf54bbd0f2416fdaa7a704
xfs: Remove all strlen in all xfs_attr_* functions for attr names.

Source kernel commit: d29f781c32b1d1366c8ac10be31dad1e1f39c336

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/attrset.c
libxfs/xfs_attr.c
libxfs/xfs_attr.h