ext2: adjust block num when retry allocation
authorChengguang Xu <cgxu519@mykernel.net>
Sun, 20 Oct 2019 23:23:26 +0000 (07:23 +0800)
committerJan Kara <jack@suse.cz>
Mon, 21 Oct 2019 09:15:44 +0000 (11:15 +0200)
commit158be76c01172f4ffa3f10e2b4b433b3e496c75d
treeb39461a127bb7e62554dff088220d4e293dda1a6
parentd02601c398522de953a44c11b282e89b01782959
ext2: adjust block num when retry allocation

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