csky: Fixup pfn_valid error with wrong max_mapnr
authorGuo Ren <guoren@linux.alibaba.com>
Wed, 20 Jan 2021 09:21:57 +0000 (17:21 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Sat, 27 Feb 2021 08:35:09 +0000 (16:35 +0800)
commitc47e1a1cb6d473172d4d9c24056960bd542dc56c
tree011225d51b8820de2c395198bd5dbb793a639524
parent0d3b051adbb72ed81956447d0d1e54d5943ee6f5
csky: Fixup pfn_valid error with wrong max_mapnr

The max_mapnr is the number of PFNs, not absolute PFN offset.
Using set_max_mapnr API instead of setting the value directly.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
arch/csky/mm/init.c