1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2007 Red Hat. All rights reserved.
13 struct btrfs_trans_handle;
15 extern const struct xattr_handler * const btrfs_xattr_handlers[];
17 int btrfs_getxattr(const struct inode *inode, const char *name,
18 void *buffer, size_t size);
19 int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
20 const char *name, const void *value, size_t size, int flags);
21 int btrfs_setxattr_trans(struct inode *inode, const char *name,
22 const void *value, size_t size, int flags);
23 ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
25 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
26 struct inode *inode, struct inode *dir,
27 const struct qstr *qstr);