From 2c3c1048746a4622d8c89a29670120dc8fab93c4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:49:45 +0200 Subject: Adding upstream version 6.1.76. Signed-off-by: Daniel Baumann --- fs/btrfs/xattr.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 fs/btrfs/xattr.h (limited to 'fs/btrfs/xattr.h') diff --git a/fs/btrfs/xattr.h b/fs/btrfs/xattr.h new file mode 100644 index 000000000..1cd3fc0a8 --- /dev/null +++ b/fs/btrfs/xattr.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2007 Red Hat. All rights reserved. + */ + +#ifndef BTRFS_XATTR_H +#define BTRFS_XATTR_H + +#include + +extern const struct xattr_handler *btrfs_xattr_handlers[]; + +int btrfs_getxattr(struct inode *inode, const char *name, + void *buffer, size_t size); +int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, + const char *name, const void *value, size_t size, int flags); +int btrfs_setxattr_trans(struct inode *inode, const char *name, + const void *value, size_t size, int flags); +ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size); + +int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, + struct inode *inode, struct inode *dir, + const struct qstr *qstr); + +#endif -- cgit v1.2.3