diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-05-26 23:14:54 +0300 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-05-29 18:04:45 +0300 |
commit | 05b63d2beb8b0f752d1f5cdd051c8bdbf532cedd (patch) | |
tree | 7ec36d07082fef2dd9e7325d42f09f98a58d9d41 /scripts/gdb/linux/utils.py | |
parent | 796e9149a2fcdba5543e247abd8d911a399bb9a6 (diff) | |
download | linux-05b63d2beb8b0f752d1f5cdd051c8bdbf532cedd.tar.xz |
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: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Link: https://lore.kernel.org/r/20230526201459.128169-2-hsiangkao@linux.alibaba.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions