fscrypt_has_encryption_key
if (IS_ENCRYPTED(dir) && fscrypt_has_encryption_key(dir)) {
if (!fscrypt_has_encryption_key(dir))
if (!fscrypt_has_encryption_key(dir)) {
bool had_key = fscrypt_has_encryption_key(dir);
if (!had_key && fscrypt_has_encryption_key(dir)) {
!fscrypt_has_encryption_key(dir)) {
fscrypt_has_encryption_key(dir))) {
bool had_key = fscrypt_has_encryption_key(dir);
if (!had_key && fscrypt_has_encryption_key(dir))
if (!fscrypt_has_encryption_key(dir))
if (fscrypt_has_encryption_key(d_inode(parent))) {
if (fscrypt_has_encryption_key(inode))
if (fscrypt_has_encryption_key(dir)) {
return !fscrypt_has_encryption_key(dir);
if (!fscrypt_has_encryption_key(inode))
bool is_nokey_name = (!err && !fscrypt_has_encryption_key(dir));
if (WARN_ON_ONCE(!fscrypt_has_encryption_key(inode)))
has_key = fscrypt_has_encryption_key(inode);
if (fscrypt_has_encryption_key(inode))
if (fscrypt_has_encryption_key(dir)) {
(!IS_ENCRYPTED(dir) || fscrypt_has_encryption_key(dir))) {
BUG_ON(!fscrypt_has_encryption_key(inode));
if (IS_ENCRYPTED(inode) && !fscrypt_has_encryption_key(inode))
(IS_ENCRYPTED(dir) && !fscrypt_has_encryption_key(dir))) {
(!IS_ENCRYPTED(parent) || fscrypt_has_encryption_key(parent))) {
if (WARN_ON_ONCE(!fscrypt_has_encryption_key(parent)))