projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d02601c
)
ext2: adjust block num when retry allocation
author
Chengguang Xu
<cgxu519@mykernel.net>
Sun, 20 Oct 2019 23:23:26 +0000
(07:23 +0800)
committer
Jan Kara
<jack@suse.cz>
Mon, 21 Oct 2019 09:15:44 +0000
(11:15 +0200)
Set block num to original *count in a case
of retrying allocation in case num < *count
Link:
https://lore.kernel.org/r/20191020232326.84881-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/balloc.c
patch
|
blob
|
history
diff --git
a/fs/ext2/balloc.c
b/fs/ext2/balloc.c
index e0cc551645059d1bd98a5b622563afae2381448e..924c1c7653068a29c083a59d2c00c051577886db 100644
(file)
--- a/
fs/ext2/balloc.c
+++ b/
fs/ext2/balloc.c
@@
-1404,6
+1404,7
@@
allocated:
* use. So we may want to selectively mark some of the blocks
* as free
*/
+ num = *count;
goto retry_alloc;
}