summaryrefslogtreecommitdiff
path: root/include/linux/xattr.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-08-12 22:46:53 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-08-17 16:09:41 -0400
commite2e14931119598a47b143c0b03af90fba604533b (patch)
treeae8f99341731cca607a9c2eb5588c8ca84b252da /include/linux/xattr.h
parent8b93af8747bd9de6bce60d1da2d6c8f2728f9ce3 (diff)
Update bcachefs sources to e7015d0df31c bcachefs: Simplify bch2_xattr_emit() implementationv1.11.0
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/xattr.h')
-rw-r--r--include/linux/xattr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/xattr.h b/include/linux/xattr.h
index dcdff6e8..1cfdb6cf 100644
--- a/include/linux/xattr.h
+++ b/include/linux/xattr.h
@@ -47,6 +47,12 @@ struct xattr_handler {
size_t size, int flags);
};
+static inline bool xattr_handler_can_list(const struct xattr_handler *handler,
+ struct dentry *dentry)
+{
+ return handler && (!handler->list || handler->list(dentry));
+}
+
const char *xattr_full_name(const struct xattr_handler *, const char *);
struct xattr {