1*5c11adccSJosef Bacik /* SPDX-License-Identifier: GPL-2.0 */ 2*5c11adccSJosef Bacik 3*5c11adccSJosef Bacik #ifndef BTRFS_VERITY_H 4*5c11adccSJosef Bacik #define BTRFS_VERITY_H 5*5c11adccSJosef Bacik 6*5c11adccSJosef Bacik #ifdef CONFIG_FS_VERITY 7*5c11adccSJosef Bacik 8*5c11adccSJosef Bacik extern const struct fsverity_operations btrfs_verityops; 9*5c11adccSJosef Bacik 10*5c11adccSJosef Bacik int btrfs_drop_verity_items(struct btrfs_inode *inode); 11*5c11adccSJosef Bacik int btrfs_get_verity_descriptor(struct inode *inode, void *buf, size_t buf_size); 12*5c11adccSJosef Bacik 13*5c11adccSJosef Bacik #else 14*5c11adccSJosef Bacik btrfs_drop_verity_items(struct btrfs_inode * inode)15*5c11adccSJosef Bacikstatic inline int btrfs_drop_verity_items(struct btrfs_inode *inode) 16*5c11adccSJosef Bacik { 17*5c11adccSJosef Bacik return 0; 18*5c11adccSJosef Bacik } 19*5c11adccSJosef Bacik btrfs_get_verity_descriptor(struct inode * inode,void * buf,size_t buf_size)20*5c11adccSJosef Bacikstatic inline int btrfs_get_verity_descriptor(struct inode *inode, void *buf, 21*5c11adccSJosef Bacik size_t buf_size) 22*5c11adccSJosef Bacik { 23*5c11adccSJosef Bacik return -EPERM; 24*5c11adccSJosef Bacik } 25*5c11adccSJosef Bacik 26*5c11adccSJosef Bacik #endif 27*5c11adccSJosef Bacik 28*5c11adccSJosef Bacik #endif 29