diff options
| author | Aneesh Kumar K.V <[email protected]> | 2021-07-29 21:53:47 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-07-30 17:14:39 +0000 |
| commit | b5916c025432b7c776b6bb13617485fbc0bd3ebd (patch) | |
| tree | e410f1dceac3d18fbdacae4dca206340a166b15b /fs/btrfs/compression.c | |
| parent | mm: memcontrol: fix blocking rstat function called from atomic cgroup1 thresh... (diff) | |
| download | kernel-b5916c025432b7c776b6bb13617485fbc0bd3ebd.tar.gz kernel-b5916c025432b7c776b6bb13617485fbc0bd3ebd.zip | |
mm/migrate: fix NR_ISOLATED corruption on 64-bit
Similar to commit 2da9f6305f30 ("mm/vmscan: fix NR_ISOLATED_FILE
corruption on 64-bit") avoid using unsigned int for nr_pages. With
unsigned int type the large unsigned int converts to a large positive
signed long.
Symptoms include CMA allocations hanging forever due to
alloc_contig_range->...->isolate_migratepages_block waiting forever in
"while (unlikely(too_many_isolated(pgdat)))".
Link: https://lkml.kernel.org/r/[email protected]
Fixes: c5fc5c3ae0c8 ("mm: migrate: account THP NUMA migration counters correctly")
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Reported-by: Michael Ellerman <[email protected]>
Reported-by: Alexey Kardashevskiy <[email protected]>
Reviewed-by: Yang Shi <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions
