Re: [PATCH v20 01/20] mm/memcg: warning on !memcg after readahead page charged

2020-10-29 Thread Johannes Weiner
On Thu, Oct 29, 2020 at 06:44:46PM +0800, Alex Shi wrote: > Add VM_WARN_ON_ONCE_PAGE() macro. > > Since readahead page is charged on memcg too, in theory we don't have to > check this exception now. Before safely remove them all, add a warning > for the unexpected !memcg. > > Signed-off-by: Alex

[PATCH v20 01/20] mm/memcg: warning on !memcg after readahead page charged

2020-10-29 Thread Alex Shi
Add VM_WARN_ON_ONCE_PAGE() macro. Since readahead page is charged on memcg too, in theory we don't have to check this exception now. Before safely remove them all, add a warning for the unexpected !memcg. Signed-off-by: Alex Shi Acked-by: Michal Hocko Acked-by: Hugh Dickins Cc: Johannes