Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc86248a authored by Neeraj Soni's avatar Neeraj Soni Committed by Gerrit - the friendly Code Review server
Browse files

fs: crypto: fix issue introduced with lts-integration



Fix the perf issue introduced with wrong conflict resolution of
'commit 81b89766408b ("Merge android-4.9.175 (e2171b62) into msm-4.9")'.

Change-Id: I3b368c5efd8e297bbe6b5c6e3ad12389a0edde7e
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent 63361087
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3624,8 +3624,9 @@ static ssize_t ext4_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
	ssize_t ret;
	int rw = iov_iter_rw(iter);

#ifdef CONFIG_FS_ENCRYPTION
	if (IS_ENCRYPTED(inode) && S_ISREG(inode->i_mode))
#ifdef CONFIG_EXT4_FS_ENCRYPTION
	if (IS_ENCRYPTED(inode) && S_ISREG(inode->i_mode)
		&& !fscrypt_using_hardware_encryption(inode))
		return 0;
#endif