diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 7216ac1f860c..929a0308676c 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -3695,6 +3695,9 @@ static int btrfs_file_open(struct inode *inode, struct file *filp) int ret;filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;+ ret = fscrypt_file_open(inode, filp); + if (ret) + return ret;ret = fsverity_file_open(inode, filp);Can fsverity and fscrypt can be used at the same time?
Yes, and there's a fstest, generic/576, checking the hooks are in the right order.