]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/vmscan: print err before panic
authorAngus Chen <angus.chen@jaguarmicro.com>
Wed, 6 Sep 2023 08:37:00 +0000 (16:37 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Oct 2023 17:32:22 +0000 (10:32 -0700)
commit037dd8f9024bdd5540e2b66eba56c279f740b23c
tree5c29cb3d19f7e55f934da7f82b0477b6f3f48190
parent40dca9b3d65a20c4b7a48252ece572132a299302
mm/vmscan: print err before panic

If panic is enable,the err information will not be printed before bugon,
So swap it.  Print the return value of PTR_ERR(pgdat->kswapd) also.

Link: https://lkml.kernel.org/r/20230906083700.181-1-angus.chen@jaguarmicro.com
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c