summaryrefslogtreecommitdiff
path: root/include/linux/xattr.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2023-02-01 14:14:52 +0100
committerChristian Brauner (Microsoft) <brauner@kernel.org>2023-03-06 09:57:07 +0100
commitf2620f166e2a4db08f016b7b30b904ab28c265e4 (patch)
tree11a350c4f48ac673b05b1f3c4f5c14677575cf97 /include/linux/xattr.h
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
xattr: simplify listxattr helpers
The generic_listxattr() and simple_xattr_list() helpers list xattrs and contain duplicated code. Add two helpers that both generic_listxattr() and simple_xattr_list() can use. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Diffstat (limited to 'include/linux/xattr.h')
-rw-r--r--include/linux/xattr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/xattr.h b/include/linux/xattr.h
index 6af72461397d..ce8fb0bd56c6 100644
--- a/include/linux/xattr.h
+++ b/include/linux/xattr.h
@@ -109,5 +109,6 @@ ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs,
char *buffer, size_t size);
void simple_xattr_add(struct simple_xattrs *xattrs,
struct simple_xattr *new_xattr);
+int xattr_list_one(char **buffer, ssize_t *remaining_size, const char *name);
#endif /* _LINUX_XATTR_H */