summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-09-26 23:07:15 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2024-11-06 18:59:39 +0100
commit0158005aaa3c946ecac9d251c34708a40a85cbe1 (patch)
treeb19bc02ff8fcc5bfbe412ea229ae7f5d500b76b5 /fs/internal.h
parentreplace do_setxattr() with saner helpers. (diff)
downloadlinux-0158005aaa3c946ecac9d251c34708a40a85cbe1.tar.xz
linux-0158005aaa3c946ecac9d251c34708a40a85cbe1.zip
replace do_getxattr() with saner helpers.
similar to do_setxattr() in the previous commit... Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/internal.h b/fs/internal.h
index be7c0da3bcec..8001efd1f047 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -280,11 +280,9 @@ struct kernel_xattr_ctx {
unsigned int flags;
};
-
-ssize_t do_getxattr(struct mnt_idmap *idmap,
- struct dentry *d,
- struct kernel_xattr_ctx *ctx);
-
+ssize_t file_getxattr(struct file *file, struct kernel_xattr_ctx *ctx);
+ssize_t filename_getxattr(int dfd, struct filename *filename,
+ unsigned int lookup_flags, struct kernel_xattr_ctx *ctx);
int file_setxattr(struct file *file, struct kernel_xattr_ctx *ctx);
int filename_setxattr(int dfd, struct filename *filename,
unsigned int lookup_flags, struct kernel_xattr_ctx *ctx);