summaryrefslogtreecommitdiff
path: root/fs/internal.h
diff options
context:
space:
mode:
authorStefan Roesch <shr@fb.com>2022-04-24 18:13:50 -0600
committerJens Axboe <axboe@kernel.dk>2022-04-24 18:18:37 -0600
commitc975cad931570004b5f51248424a2a696fb65630 (patch)
treeafa1574a1e118eabac5363a60443514d40ebf98e /fs/internal.h
parent1a91794ce8481a293c5ef432feb440aee1455619 (diff)
fs: split off do_getxattr from getxattr
This splits off do_getxattr function from the getxattr function. This will allow io_uring to call it from its io worker. Signed-off-by: Stefan Roesch <shr@fb.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Link: https://lore.kernel.org/r/20220323154420.3301504-3-shr@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h
index 5fb219f0d1f6..9a6c233ee7f1 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -212,6 +212,11 @@ struct xattr_ctx {
unsigned int flags;
};
+
+ssize_t do_getxattr(struct user_namespace *mnt_userns,
+ struct dentry *d,
+ struct xattr_ctx *ctx);
+
int setxattr_copy(const char __user *name, struct xattr_ctx *ctx);
int do_setxattr(struct user_namespace *mnt_userns, struct dentry *dentry,
struct xattr_ctx *ctx);