Loading fs/ubifs/file.c +3 −7 Original line number Diff line number Diff line Loading @@ -1284,13 +1284,9 @@ int ubifs_setattr(struct dentry *dentry, struct iattr *attr) if (err) return err; if (ubifs_crypt_is_encrypted(inode) && (attr->ia_valid & ATTR_SIZE)) { err = fscrypt_get_encryption_info(inode); err = fscrypt_prepare_setattr(dentry, attr); if (err) return err; if (!fscrypt_has_encryption_key(inode)) return -ENOKEY; } if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) /* Truncation to a smaller size */ Loading Loading
fs/ubifs/file.c +3 −7 Original line number Diff line number Diff line Loading @@ -1284,13 +1284,9 @@ int ubifs_setattr(struct dentry *dentry, struct iattr *attr) if (err) return err; if (ubifs_crypt_is_encrypted(inode) && (attr->ia_valid & ATTR_SIZE)) { err = fscrypt_get_encryption_info(inode); err = fscrypt_prepare_setattr(dentry, attr); if (err) return err; if (!fscrypt_has_encryption_key(inode)) return -ENOKEY; } if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) /* Truncation to a smaller size */ Loading