1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * Copyright (C) 2007 Red Hat. All rights res 3 * Copyright (C) 2007 Red Hat. All rights reserved. 4 */ 4 */ 5 5 6 #ifndef BTRFS_XATTR_H 6 #ifndef BTRFS_XATTR_H 7 #define BTRFS_XATTR_H 7 #define BTRFS_XATTR_H 8 8 9 struct dentry; !! 9 #include <linux/xattr.h> 10 struct inode; << 11 struct qstr; << 12 struct xattr_handler; << 13 struct btrfs_trans_handle; << 14 10 15 extern const struct xattr_handler * const btrf !! 11 extern const struct xattr_handler *btrfs_xattr_handlers[]; 16 12 17 int btrfs_getxattr(const struct inode *inode, !! 13 int btrfs_getxattr(struct inode *inode, const char *name, 18 void *buffer, size_t size); 14 void *buffer, size_t size); 19 int btrfs_setxattr(struct btrfs_trans_handle * 15 int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, 20 const char *name, const voi 16 const char *name, const void *value, size_t size, int flags); 21 int btrfs_setxattr_trans(struct inode *inode, 17 int btrfs_setxattr_trans(struct inode *inode, const char *name, 22 const void *value, si 18 const void *value, size_t size, int flags); 23 ssize_t btrfs_listxattr(struct dentry *dentry, 19 ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size); 24 20 25 int btrfs_xattr_security_init(struct btrfs_tra 21 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, 26 struct in 22 struct inode *inode, struct inode *dir, 27 const str 23 const struct qstr *qstr); 28 24 29 #endif 25 #endif 30 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.