Re: [PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-23 Thread Michal Hocko
On Thu 22-06-17 09:58:17, Nikolay Borisov wrote: > > > On 22.06.2017 09:44, Michal Hocko wrote: > > On Tue 20-06-17 18:14:28, Nikolay Borisov wrote: > >> Currently there are a multiple files with the following code: > >> #define K(x) ((x) << (PAGE_SHIFT - 10)) > >> ... some code.. > >> #undef

Re: [PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-23 Thread Michal Hocko
On Thu 22-06-17 09:58:17, Nikolay Borisov wrote: > > > On 22.06.2017 09:44, Michal Hocko wrote: > > On Tue 20-06-17 18:14:28, Nikolay Borisov wrote: > >> Currently there are a multiple files with the following code: > >> #define K(x) ((x) << (PAGE_SHIFT - 10)) > >> ... some code.. > >> #undef

Re: [PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-22 Thread Nikolay Borisov
On 22.06.2017 09:44, Michal Hocko wrote: > On Tue 20-06-17 18:14:28, Nikolay Borisov wrote: >> Currently there are a multiple files with the following code: >> #define K(x) ((x) << (PAGE_SHIFT - 10)) >> ... some code.. >> #undef K >> >> This is mainly used to print out some memory-related

Re: [PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-22 Thread Nikolay Borisov
On 22.06.2017 09:44, Michal Hocko wrote: > On Tue 20-06-17 18:14:28, Nikolay Borisov wrote: >> Currently there are a multiple files with the following code: >> #define K(x) ((x) << (PAGE_SHIFT - 10)) >> ... some code.. >> #undef K >> >> This is mainly used to print out some memory-related

Re: [PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-22 Thread Michal Hocko
On Tue 20-06-17 18:14:28, Nikolay Borisov wrote: > Currently there are a multiple files with the following code: > #define K(x) ((x) << (PAGE_SHIFT - 10)) > ... some code.. > #undef K > > This is mainly used to print out some memory-related statistics, where X is > given in pages and the macro

Re: [PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-22 Thread Michal Hocko
On Tue 20-06-17 18:14:28, Nikolay Borisov wrote: > Currently there are a multiple files with the following code: > #define K(x) ((x) << (PAGE_SHIFT - 10)) > ... some code.. > #undef K > > This is mainly used to print out some memory-related statistics, where X is > given in pages and the macro

[PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-20 Thread Nikolay Borisov
Currently there are a multiple files with the following code: #define K(x) ((x) << (PAGE_SHIFT - 10)) ... some code.. #undef K This is mainly used to print out some memory-related statistics, where X is given in pages and the macro just converts it to kilobytes. In the future there is going to

[PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-20 Thread Nikolay Borisov
Currently there are a multiple files with the following code: #define K(x) ((x) << (PAGE_SHIFT - 10)) ... some code.. #undef K This is mainly used to print out some memory-related statistics, where X is given in pages and the macro just converts it to kilobytes. In the future there is going to