Re: [PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Vlastimil Babka
On 11/26/18 3:01 AM, Matthew Wilcox wrote: > On Mon, Nov 26, 2018 at 07:58:23AM +0800, Yang Yang wrote: >> When si_mem_available() calculates 'available', it takes SWAP >> into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system >> would like to do that), there is no need to

Re: [PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Vlastimil Babka
On 11/26/18 3:01 AM, Matthew Wilcox wrote: > On Mon, Nov 26, 2018 at 07:58:23AM +0800, Yang Yang wrote: >> When si_mem_available() calculates 'available', it takes SWAP >> into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system >> would like to do that), there is no need to

Re: [PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Matthew Wilcox
On Mon, Nov 26, 2018 at 07:58:23AM +0800, Yang Yang wrote: > When si_mem_available() calculates 'available', it takes SWAP > into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system > would like to do that), there is no need to consider it. I don't understand this patch. The

Re: [PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Matthew Wilcox
On Mon, Nov 26, 2018 at 07:58:23AM +0800, Yang Yang wrote: > When si_mem_available() calculates 'available', it takes SWAP > into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system > would like to do that), there is no need to consider it. I don't understand this patch. The

[PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Yang Yang
When si_mem_available() calculates 'available', it takes SWAP into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system would like to do that), there is no need to consider it. Signed-off-by: Yang Yang --- mm/page_alloc.c | 8 +++- 1 file changed, 7 insertions(+), 1

[PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Yang Yang
When si_mem_available() calculates 'available', it takes SWAP into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system would like to do that), there is no need to consider it. Signed-off-by: Yang Yang --- mm/page_alloc.c | 8 +++- 1 file changed, 7 insertions(+), 1