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

Commit cfcdd3d4 authored by Yunlong Song's avatar Yunlong Song Committed by Jaegeuk Kim
Browse files

FROMLIST: f2fs: don't put dentry page in pagecache into highmem



Cherry-pick from origin/upstream-f2fs-stable-linux-3.18.y:
d0258fee ("f2fs: don't put dentry page in pagecache into highmem")

Previous dentry page uses highmem, which will cause panic in platforms
using highmem (such as arm), since the address space of dentry pages
from highmem directly goes into the decryption path via the function
fscrypt_fname_disk_to_usr. But sg_init_one assumes the address is not
from highmem, and then cause panic since it doesn't call kmap_high but
kunmap_high is triggered at the end. To fix this problem in a simple
way, this patch avoids to put dentry page in pagecache into highmem.

Change-Id: Ic8d8f7f9a1ea438e61f2f6bb28369c4817bf3506
Signed-off-by: default avatarYunlong Song <yunlong.song@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: fix coding style]
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 913b3925
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment