mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 08:58:07 +00:00
5c11adcc38
Move these out of ctree.h into verity.h to cut down on code in ctree.h. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
28 lines
543 B
C
28 lines
543 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef BTRFS_VERITY_H
|
|
#define BTRFS_VERITY_H
|
|
|
|
#ifdef CONFIG_FS_VERITY
|
|
|
|
extern const struct fsverity_operations btrfs_verityops;
|
|
|
|
int btrfs_drop_verity_items(struct btrfs_inode *inode);
|
|
int btrfs_get_verity_descriptor(struct inode *inode, void *buf, size_t buf_size);
|
|
|
|
#else
|
|
|
|
static inline int btrfs_drop_verity_items(struct btrfs_inode *inode)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int btrfs_get_verity_descriptor(struct inode *inode, void *buf,
|
|
size_t buf_size)
|
|
{
|
|
return -EPERM;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|