xfs: rename xfs_attr_list_int to xfs_attr_list

The version taking the context structure is the main interface to list
attributes, so drop the _int postfix.

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>
This commit is contained in:
Christoph Hellwig 2020-02-26 17:30:39 -08:00 committed by Darrick J. Wong
parent 3e7a779937
commit 17e1dd83ea
5 changed files with 9 additions and 9 deletions

View File

@ -102,8 +102,8 @@ struct xfs_attr_list_context {
* Overall external interface routines. * Overall external interface routines.
*/ */
int xfs_attr_inactive(struct xfs_inode *dp); int xfs_attr_inactive(struct xfs_inode *dp);
int xfs_attr_list_int_ilocked(struct xfs_attr_list_context *); int xfs_attr_list_ilocked(struct xfs_attr_list_context *);
int xfs_attr_list_int(struct xfs_attr_list_context *); int xfs_attr_list(struct xfs_attr_list_context *);
int xfs_inode_hasattr(struct xfs_inode *ip); int xfs_inode_hasattr(struct xfs_inode *ip);
int xfs_attr_get_ilocked(struct xfs_da_args *args); int xfs_attr_get_ilocked(struct xfs_da_args *args);
int xfs_attr_get(struct xfs_da_args *args); int xfs_attr_get(struct xfs_da_args *args);

View File

@ -98,7 +98,7 @@ struct xchk_xattr {
/* /*
* Check that an extended attribute key can be looked up by hash. * Check that an extended attribute key can be looked up by hash.
* *
* We use the XFS attribute list iterator (i.e. xfs_attr_list_int_ilocked) * We use the XFS attribute list iterator (i.e. xfs_attr_list_ilocked)
* to call this function for every attribute key in an inode. Once * to call this function for every attribute key in an inode. Once
* we're here, we load the attribute value to see if any errors happen, * we're here, we load the attribute value to see if any errors happen,
* or if we get more or less data than we expected. * or if we get more or less data than we expected.
@ -516,7 +516,7 @@ xchk_xattr(
* iteration, which doesn't really follow the usual buffer * iteration, which doesn't really follow the usual buffer
* locking order. * locking order.
*/ */
error = xfs_attr_list_int_ilocked(&sx.context); error = xfs_attr_list_ilocked(&sx.context);
if (!xchk_fblock_process_error(sc, XFS_ATTR_FORK, 0, &error)) if (!xchk_fblock_process_error(sc, XFS_ATTR_FORK, 0, &error))
goto out; goto out;

View File

@ -507,7 +507,7 @@ xfs_attr_leaf_list(
} }
int int
xfs_attr_list_int_ilocked( xfs_attr_list_ilocked(
struct xfs_attr_list_context *context) struct xfs_attr_list_context *context)
{ {
struct xfs_inode *dp = context->dp; struct xfs_inode *dp = context->dp;
@ -527,7 +527,7 @@ xfs_attr_list_int_ilocked(
} }
int int
xfs_attr_list_int( xfs_attr_list(
struct xfs_attr_list_context *context) struct xfs_attr_list_context *context)
{ {
struct xfs_inode *dp = context->dp; struct xfs_inode *dp = context->dp;
@ -540,7 +540,7 @@ xfs_attr_list_int(
return -EIO; return -EIO;
lock_mode = xfs_ilock_attr_map_shared(dp); lock_mode = xfs_ilock_attr_map_shared(dp);
error = xfs_attr_list_int_ilocked(context); error = xfs_attr_list_ilocked(context);
xfs_iunlock(dp, lock_mode); xfs_iunlock(dp, lock_mode);
return error; return error;
} }

View File

@ -394,7 +394,7 @@ xfs_ioc_attr_list(
alist->al_more = 0; alist->al_more = 0;
alist->al_offset[0] = context.bufsize; alist->al_offset[0] = context.bufsize;
error = xfs_attr_list_int(&context); error = xfs_attr_list(&context);
ASSERT(error <= 0); ASSERT(error <= 0);
return error; return error;
} }

View File

@ -234,7 +234,7 @@ xfs_vn_listxattr(
context.firstu = context.bufsize; context.firstu = context.bufsize;
context.put_listent = xfs_xattr_put_listent; context.put_listent = xfs_xattr_put_listent;
error = xfs_attr_list_int(&context); error = xfs_attr_list(&context);
if (error) if (error)
return error; return error;
if (context.count < 0) if (context.count < 0)