Re: [PATCH 2/7] mm/hugetlb: is_file_hugepages can be boolean

2015-11-16 Thread Michal Hocko
On Mon 16-11-15 14:51:21, Yaowei Bai wrote: > This patch makes is_file_hugepages return bool to improve > readability due to this particular function only using either > one or zero as its return value. > > This patch also removed the if condition to make is_file_hugepages > return directly. > >

[PATCH 2/7] mm/hugetlb: is_file_hugepages can be boolean

2015-11-15 Thread Yaowei Bai
This patch makes is_file_hugepages return bool to improve readability due to this particular function only using either one or zero as its return value. This patch also removed the if condition to make is_file_hugepages return directly. No functional change. Signed-off-by: Yaowei Bai --- inclu