Skip to content

Commit 585e5b1

Browse files
committed
Merge tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt
Pull fscrypt fix from Eric Biggers: "Fix a regression where new files weren't using inline encryption when they should be" * tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt: fscrypt: fix inline encryption not used on new files
2 parents 20ca21d + d19d8d3 commit 585e5b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/crypto/inline_crypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int fscrypt_select_encryption_impl(struct fscrypt_info *ci)
7474
int i;
7575

7676
/* The file must need contents encryption, not filenames encryption */
77-
if (!fscrypt_needs_contents_encryption(inode))
77+
if (!S_ISREG(inode->i_mode))
7878
return 0;
7979

8080
/* The crypto mode must have a blk-crypto counterpart */

0 commit comments

Comments
 (0)