xfs: rename xfs_attr_fetch to xfs_attr_get_int
Using a totally different name for the low-level get operation does not fit the _int convention used in the rest of the attr code, so rename it. While we're at it also fix the prototype to use the normal convention and mark it static as it's never used outside of xfs_attr.c. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: Alex Elder <aelder@sgi.com>
This commit is contained in:

committed by
Alex Elder

parent
6ad112bfb5
commit
e82fa0c7ca
@@ -123,9 +123,13 @@ xfs_inode_hasattr(
|
||||
* Overall external interface routines.
|
||||
*========================================================================*/
|
||||
|
||||
int
|
||||
xfs_attr_fetch(xfs_inode_t *ip, struct xfs_name *name,
|
||||
char *value, int *valuelenp, int flags)
|
||||
STATIC int
|
||||
xfs_attr_get_int(
|
||||
struct xfs_inode *ip,
|
||||
struct xfs_name *name,
|
||||
char *value,
|
||||
int *valuelenp,
|
||||
int flags)
|
||||
{
|
||||
xfs_da_args_t args;
|
||||
int error;
|
||||
@@ -188,7 +192,7 @@ xfs_attr_get(
|
||||
return error;
|
||||
|
||||
xfs_ilock(ip, XFS_ILOCK_SHARED);
|
||||
error = xfs_attr_fetch(ip, &xname, value, valuelenp, flags);
|
||||
error = xfs_attr_get_int(ip, &xname, value, valuelenp, flags);
|
||||
xfs_iunlock(ip, XFS_ILOCK_SHARED);
|
||||
return(error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user