Re: [PATCH 2/2] seq_file: account everything

2018-03-16 Thread Michal Hocko
On Sat 10-03-18 11:52:52, Alexey Dobriyan wrote: > All it takes to open a file and read 1 byte from it. > > seq_file will be allocated along with any private allocations, > and more importantly seq file buffer which is 1 page by default. OOM badness heuristic will not know about this memory when

[PATCH 2/2] seq_file: account everything

2018-03-10 Thread Alexey Dobriyan
All it takes to open a file and read 1 byte from it. seq_file will be allocated along with any private allocations, and more importantly seq file buffer which is 1 page by default. Signed-off-by: Alexey Dobriyan --- fs/seq_file.c |8 1 file changed, 4 insertions(+), 4 deletions(-)