Re: [PATCH] mm: Allow GFP_IOFS for page_cache_read page cache allocation

2015-11-27 Thread Michal Hocko
On Fri 27-11-15 17:40:41, Vlastimil Babka wrote: > On 11/26/2015 04:08 PM, Michal Hocko wrote: > >On Thu 12-11-15 10:53:01, Jan Kara wrote: > >>On Wed 11-11-15 15:13:53, mho...@kernel.org wrote: > >>> > >>>Hi, > >>>this has been posted previously as a part of larger GFP_NOFS related > >>>patch set

Re: [PATCH] mm: Allow GFP_IOFS for page_cache_read page cache allocation

2015-11-27 Thread Vlastimil Babka
On 11/26/2015 04:08 PM, Michal Hocko wrote: On Thu 12-11-15 10:53:01, Jan Kara wrote: On Wed 11-11-15 15:13:53, mho...@kernel.org wrote: Hi, this has been posted previously as a part of larger GFP_NOFS related patch set (http://lkml.kernel.org/r/1438768284-30927-1-git-send-email-mhocko%40kern

Re: [PATCH] mm: Allow GFP_IOFS for page_cache_read page cache allocation

2015-11-26 Thread Michal Hocko
On Thu 12-11-15 10:53:01, Jan Kara wrote: > On Wed 11-11-15 15:13:53, mho...@kernel.org wrote: > > From: Michal Hocko > > > > page_cache_read has been historically using page_cache_alloc_cold to > > allocate a new page. This means that mapping_gfp_mask is used as the > > base for the gfp_mask. Ma

Re: [PATCH] mm: Allow GFP_IOFS for page_cache_read page cache allocation

2015-11-12 Thread Jan Kara
On Wed 11-11-15 15:13:53, mho...@kernel.org wrote: > From: Michal Hocko > > page_cache_read has been historically using page_cache_alloc_cold to > allocate a new page. This means that mapping_gfp_mask is used as the > base for the gfp_mask. Many filesystems are setting this mask to > GFP_NOFS to

[PATCH] mm: Allow GFP_IOFS for page_cache_read page cache allocation

2015-11-11 Thread mhocko
From: Michal Hocko page_cache_read has been historically using page_cache_alloc_cold to allocate a new page. This means that mapping_gfp_mask is used as the base for the gfp_mask. Many filesystems are setting this mask to GFP_NOFS to prevent from fs recursion issues. page_cache_read is called fro