From f42e79ca71b7a668b5ecdfe95067e8485ad1fd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20A=2E=20Fern=C3=A1ndez?= Date: Wed, 2 Mar 2022 13:44:44 -0300 Subject: [PATCH] Don't pass parent dir to apfs_xattr_inline_read() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Get rid of the unused 'parent' parameter of apfs_xattr_inline_read(). Signed-off-by: Ernesto A. Fernández --- xattr.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xattr.c b/xattr.c index 69e87d6..4e2dac6 100644 --- a/xattr.c +++ b/xattr.c @@ -185,7 +185,6 @@ out: /** * apfs_xattr_inline_read - Read the value of an inline xattr - * @parent: inode the attribute belongs to * @xattr: the xattr structure * @buffer: where to copy the attribute value * @size: size of @buffer @@ -197,9 +196,7 @@ out: * Returns the number of bytes used/required, or a negative error code in case * of failure. */ -static int apfs_xattr_inline_read(struct inode *parent, - struct apfs_xattr *xattr, - void *buffer, size_t size, bool only_whole) +static int apfs_xattr_inline_read(struct apfs_xattr *xattr, void *buffer, size_t size, bool only_whole) { int length = xattr->xdata_len; @@ -271,7 +268,7 @@ int ____apfs_xattr_get(struct inode *inode, const char *name, void *buffer, if (xattr.has_dstream) ret = apfs_xattr_extents_read(inode, &xattr, buffer, size, only_whole); else - ret = apfs_xattr_inline_read(inode, &xattr, buffer, size, only_whole); + ret = apfs_xattr_inline_read(&xattr, buffer, size, only_whole); done: apfs_free_query(query);