mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mm: don't set __GFP_WRITE on ramfs/sysfs writes
There is not much point in skipping zones during allocation based on the dirty usage which they'll never contribute to. And we'd like to avoid page reclaim waits when writing to ramfs/sysfs etc. Signed-off-by: Fengguang Wu <[email protected]> Acked-by: Johannes Weiner <[email protected]> Cc: Jan Kara <[email protected]> Cc: Greg Thelen <[email protected]> Cc: Ying Han <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Mel Gorman <[email protected]> Acked-by: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a05b0855fd
commit
1010bb1b80
1 changed files with 3 additions and 1 deletions
|
|
@ -2341,7 +2341,9 @@ struct page *grab_cache_page_write_begin(struct address_space *mapping,
|
|||
struct page *page;
|
||||
gfp_t gfp_notmask = 0;
|
||||
|
||||
gfp_mask = mapping_gfp_mask(mapping) | __GFP_WRITE;
|
||||
gfp_mask = mapping_gfp_mask(mapping);
|
||||
if (mapping_cap_account_dirty(mapping))
|
||||
gfp_mask |= __GFP_WRITE;
|
||||
if (flags & AOP_FLAG_NOFS)
|
||||
gfp_notmask = __GFP_FS;
|
||||
repeat:
|
||||
|
|
|
|||
Loading…
Reference in a new issue