diff options
author | Yue Hu <huyue2@yulong.com> | 2019-05-14 02:16:37 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-14 18:47:45 +0200 |
commit | f0fd50504a54f5548eb666dc16ddf8394e44e4b7 (patch) | |
tree | 75fef229a3ddb7e7e51b63418cbe43c7bae109a4 /fs/ext2 | |
parent | include/trace/events/vmscan.h: drop zone id from kswapd tracepoints (diff) | |
download | linux-f0fd50504a54f5548eb666dc16ddf8394e44e4b7.tar.xz linux-f0fd50504a54f5548eb666dc16ddf8394e44e4b7.zip |
mm/cma_debug.c: fix the break condition in cma_maxchunk_get()
If not find zero bit in find_next_zero_bit(), it will return the size
parameter passed in, so the start bit should be compared with bitmap_maxno
rather than cma->count. Although getting maxchunk is working fine due to
zero value of order_per_bit currently, the operation will be stuck if
order_per_bit is set as non-zero.
Link: http://lkml.kernel.org/r/20190319092734.276-1-zbestahu@gmail.com
Signed-off-by: Yue Hu <huyue2@yulong.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Joe Perches <joe@perches.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Dmitry Safonov <d.safonov@partner.samsung.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext2')
0 files changed, 0 insertions, 0 deletions