lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 16 Nov 2011 21:06:36 -0800 (PST)
From:	David Rientjes <rientjes@...gle.com>
To:	Claudio Scordino <claudio@...dence.eu.com>
cc:	Andrew Morton <akpm@...ux-foundation.org>, viro@...iv.linux.org.uk,
	Linux Kernel <linux-kernel@...r.kernel.org>,
	linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH] /fs/proc/meminfo.c: fix compilation error

On Thu, 3 Nov 2011, Claudio Scordino wrote:

> diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c
> index 5861741..80e4645 100644
> --- a/fs/proc/meminfo.c
> +++ b/fs/proc/meminfo.c
> @@ -131,12 +131,13 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
>  		K(i.freeswap),
>  		K(global_page_state(NR_FILE_DIRTY)),
>  		K(global_page_state(NR_WRITEBACK)),
> -		K(global_page_state(NR_ANON_PAGES)
>  #ifdef CONFIG_TRANSPARENT_HUGEPAGE
> +		K(global_page_state(NR_ANON_PAGES)
>  		  + global_page_state(NR_ANON_TRANSPARENT_HUGEPAGES) *
> -		  HPAGE_PMD_NR
> +		  HPAGE_PMD_NR),
> +#else
> +		K(global_page_state(NR_ANON_PAGES)),
>  #endif
> -		  ),
>  		K(global_page_state(NR_FILE_MAPPED)),
>  		K(global_page_state(NR_SHMEM)),
>  		K(global_page_state(NR_SLAB_RECLAIMABLE) +

Looks like this needs to be fixed for the per-node sysfs meminfo files as 
well?  See node_read_meminfo() in drivers/base/node.c.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists