Re: [Intel-gfx] [PATCH 2/5] shmemfs: Use redirty_page_for_writepage()

2014-03-06 Thread Chris Wilson
On Wed, Mar 05, 2014 at 08:06:23PM -0800, Hugh Dickins wrote: On Wed, 5 Mar 2014, Chris Wilson wrote: When we cannot write a page we should use redirty_page_for_writepage() instead of plain set_page_dirty(). That tells writeback code we have problems, redirties only the page (redirtying

[Intel-gfx] [PATCH 2/5] shmemfs: Use redirty_page_for_writepage()

2014-03-05 Thread Chris Wilson
When we cannot write a page we should use redirty_page_for_writepage() instead of plain set_page_dirty(). That tells writeback code we have problems, redirties only the page (redirtying buffers is not needed), and updates mm accounting of failed page writes. Signed-off-by: Chris Wilson