• Andrew Morton's avatar
    [PATCH] Make nr_swap_pages a long · a5b5323b
    Andrew Morton authored
    From: Anton Blanchard <anton@samba.org>
    
    ../include/linux/swap.h:extern int nr_swap_pages;       /* XXX: shouldn't this be ulong? --hch */
    
    Sounds like it should be too me.  Some of the code checks for nr_swap_pages
    < 0 so I made it a long instead.  I had to fix up the ppc64 show_mem() (Im
    guessing there will be other trivial changes required in other 64bit archs,
    I can find and fix those if you want).
    
    I also noticed that the ppc64 show_mem() used ints to store page counts.
    We can overflow that, so make them unsigned long.
    Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    a5b5323b
page_alloc.c 50.4 KB