xref: /openbmc/linux/fs/btrfs/xattr.h (revision e0f6d1a5)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2007 Red Hat.  All rights reserved.
4  */
5 
6 #ifndef BTRFS_XATTR_H
7 #define BTRFS_XATTR_H
8 
9 #include <linux/xattr.h>
10 
11 extern const struct xattr_handler *btrfs_xattr_handlers[];
12 
13 int btrfs_getxattr(struct inode *inode, const char *name,
14 		void *buffer, size_t size);
15 int btrfs_setxattr(struct btrfs_trans_handle *trans,
16 			    struct inode *inode, const char *name,
17 			    const void *value, size_t size, int flags);
18 ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
19 
20 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
21 				     struct inode *inode, struct inode *dir,
22 				     const struct qstr *qstr);
23 
24 #endif
25