sharepool: fix sp_alloc_populate no fallocate bug
ascend inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I612UG CVE: NA -------------------------------- do_mm_populate() will try allocate physical pages from the start of required range [start, end), and return error on the first allocation failure without releasing the pages allocated before. That means we must release the shared-file range after calling do_mm_populate(). Remove need_fallocate, and always call sp_fallocate() on the error path of sp_alloc_mmap_populate(). Signed-off-by:Guo Mengqi <guomengqi3@huawei.com>
Loading
Please sign in to comment