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