Re: [PATCH RESEND] mm: accurately document nr_free_*_pages functions with code comments

2013-02-07 Thread Andrew Morton
On Thu, 07 Feb 2013 09:57:27 +0800 Zhang Yanfei wrote: > Functions nr_free_zone_pages, nr_free_buffer_pages and nr_free_pagecache_pages > are horribly badly named, so accurately document them with code comments > in case of the misuse of them. Looks OK. I fiddled with it a bit: ---

Re: [PATCH RESEND] mm: accurately document nr_free_*_pages functions with code comments

2013-02-07 Thread Andrew Morton
On Thu, 07 Feb 2013 09:57:27 +0800 Zhang Yanfei zhangyan...@cn.fujitsu.com wrote: Functions nr_free_zone_pages, nr_free_buffer_pages and nr_free_pagecache_pages are horribly badly named, so accurately document them with code comments in case of the misuse of them. Looks OK. I fiddled with it

[PATCH RESEND] mm: accurately document nr_free_*_pages functions with code comments

2013-02-06 Thread Zhang Yanfei
Functions nr_free_zone_pages, nr_free_buffer_pages and nr_free_pagecache_pages are horribly badly named, so accurately document them with code comments in case of the misuse of them. Reviewed-by: Randy Dunlap Signed-off-by: Zhang Yanfei --- mm/page_alloc.c | 23 +++ 1

[PATCH RESEND] mm: accurately document nr_free_*_pages functions with code comments

2013-02-06 Thread Zhang Yanfei
Functions nr_free_zone_pages, nr_free_buffer_pages and nr_free_pagecache_pages are horribly badly named, so accurately document them with code comments in case of the misuse of them. Reviewed-by: Randy Dunlap rdun...@infradead.org Signed-off-by: Zhang Yanfei zhangyan...@cn.fujitsu.com ---