+17
−2
+2
−2
+2
−2
+1
−1
Loading
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAF8L3 -------------------------------- It's not appropriate to use current task to check THP for a vma, because the vma is not belong to current task when called from process_madvise() or damos_madvise(). Use vma->vm_mm instead of current task. For shmem, if called from file operations, there's no vma. In such case, use current-mm is enough if need to allocate pages. Fixes: 35e812f6 ("mm/dynamic_pool: disable THP for task attached with dpool") Signed-off-by:Liu Shixin <liushixin2@huawei.com>