diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 30fbb4ce6a73..65915b4ce14b 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2340,11 +2340,6 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) struct blk_plug plug; ssize_t ret; - if (f2fs_encrypted_inode(inode) && - !fscrypt_has_encryption_key(inode) && - fscrypt_get_encryption_info(inode)) - return -EACCES; - inode_lock(inode); ret = generic_write_checks(iocb, from); if (ret > 0) {