1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 #ifndef BTRFS_VERITY_H 3 #ifndef BTRFS_VERITY_H 4 #define BTRFS_VERITY_H 4 #define BTRFS_VERITY_H 5 5 6 struct inode; << 7 struct btrfs_inode; << 8 << 9 #ifdef CONFIG_FS_VERITY 6 #ifdef CONFIG_FS_VERITY 10 7 11 #include <linux/fsverity.h> << 12 << 13 extern const struct fsverity_operations btrfs_ 8 extern const struct fsverity_operations btrfs_verityops; 14 9 15 int btrfs_drop_verity_items(struct btrfs_inode 10 int btrfs_drop_verity_items(struct btrfs_inode *inode); 16 int btrfs_get_verity_descriptor(struct inode * 11 int btrfs_get_verity_descriptor(struct inode *inode, void *buf, size_t buf_size); 17 12 18 #else 13 #else 19 << 20 #include <linux/errno.h> << 21 14 22 static inline int btrfs_drop_verity_items(stru 15 static inline int btrfs_drop_verity_items(struct btrfs_inode *inode) 23 { 16 { 24 return 0; 17 return 0; 25 } 18 } 26 19 27 static inline int btrfs_get_verity_descriptor( 20 static inline int btrfs_get_verity_descriptor(struct inode *inode, void *buf, 28 21 size_t buf_size) 29 { 22 { 30 return -EPERM; 23 return -EPERM; 31 } 24 } 32 25 33 #endif 26 #endif 34 27 35 #endif 28 #endif 36 29
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.