Commit 5c182738 authored by Gao Xiang's avatar Gao Xiang Committed by Treehugger Robot
Browse files

UPSTREAM: erofs: allocate extra bvec pages directly instead of retrying



If non-bootstrap bvecs cannot be kept in place (very rarely), an extra
short-lived page is allocated.

Let's just allocate it immediately rather than do unnecessary -EAGAIN
return first and retry as a cleanup.  Also it's unnecessary to use
__GFP_NOFAIL here since we could gracefully fail out this case instead.

Signed-off-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: default avatarYue Hu <huyue2@coolpad.com>
Link: https://lore.kernel.org/r/20230526201459.128169-2-hsiangkao@linux.alibaba.com



Bug: 318378021
(cherry picked from commit 05b63d2b)
Change-Id: I2ac45a943060406bcbb741c5f7aa1094f783f906
Signed-off-by: default avatarSandeep Dhavale <dhavale@google.com>
parent bed20ed1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment