diff options
author | Chengguang Xu <cgxu519@mykernel.net> | 2019-10-21 07:23:26 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-10-21 11:15:44 +0200 |
commit | 158be76c01172f4ffa3f10e2b4b433b3e496c75d (patch) | |
tree | b39461a127bb7e62554dff088220d4e293dda1a6 /fs/ext2/balloc.c | |
parent | d02601c398522de953a44c11b282e89b01782959 (diff) | |
download | lwn-158be76c01172f4ffa3f10e2b4b433b3e496c75d.tar.gz lwn-158be76c01172f4ffa3f10e2b4b433b3e496c75d.zip |
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>
Diffstat (limited to 'fs/ext2/balloc.c')
-rw-r--r-- | fs/ext2/balloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index e0cc55164505..924c1c765306 100644 --- 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; } |