]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: rename xfs_has_attr()
authorDave Chinner <dchinner@redhat.com>
Thu, 6 Jan 2022 22:13:13 +0000 (14:13 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jan 2022 00:02:50 +0000 (16:02 -0800)
commitca7ac8630917be258e86704cf4c464d95cc8a432
tree09ffcd74909f770251e0addebe0c7f1cd6bac795
parent08f0bf22079c38eb037e1e122843ea170a6ebf87
xfs: rename xfs_has_attr()

Source kernel commit: 51b495eba84dee8c1df4abfc26fc134ea190e28f

xfs_has_attr() is poorly named. It has global scope as it is defined
in a header file, but it has no namespace scope that tells us what
it is checking has attributes. It's not even clear what "has_attr"
means, because what it is actually doing is an attribute fork lookup
to see if the attribute exists.

Upcoming patches use this "xfs_has_<foo>" namespace for global
filesystem features, which conflicts with this function.

Rename xfs_has_attr() to xfs_attr_lookup() and make it a static
function, freeing up the "xfs_has_" namespace for global scope
usage.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_attr.c
libxfs/xfs_attr.h