Commit 05b63d2
committed
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.com1 parent 796e914 commit 05b63d2
1 file changed
Lines changed: 12 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
249 | 254 | | |
250 | | - | |
| 255 | + | |
251 | 256 | | |
252 | 257 | | |
253 | 258 | | |
| |||
906 | 911 | | |
907 | 912 | | |
908 | 913 | | |
909 | | - | |
910 | | - | |
| 914 | + | |
911 | 915 | | |
912 | | - | |
913 | 916 | | |
914 | 917 | | |
915 | 918 | | |
| |||
1054 | 1057 | | |
1055 | 1058 | | |
1056 | 1059 | | |
1057 | | - | |
1058 | 1060 | | |
1059 | 1061 | | |
1060 | 1062 | | |
1061 | 1063 | | |
1062 | 1064 | | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
| 1065 | + | |
1073 | 1066 | | |
1074 | | - | |
1075 | 1067 | | |
1076 | 1068 | | |
1077 | 1069 | | |
| |||
0 commit comments