Re: [PATCH] f2fs: check bdi->dirty_exceeded when trying to skip data writes

2014-07-02 Thread Andrew Morton
On Wed, 2 Jul 2014 02:31:26 -0700 Jaegeuk Kim wrote: > > > --- a/fs/f2fs/node.c > > > +++ b/fs/f2fs/node.c > > > @@ -43,6 +43,8 @@ bool available_free_memory(struct f2fs_sb_info *sbi, > > > int type) > > > mem_size = (nm_i->nat_cnt * sizeof(struct nat_entry)) >> 12; > > > res

Re: [PATCH] f2fs: check bdi->dirty_exceeded when trying to skip data writes

2014-07-02 Thread Jaegeuk Kim
On Tue, Jul 01, 2014 at 10:54:20PM -0700, Andrew Morton wrote: > On Sat, 28 Jun 2014 20:58:38 +0900 Jaegeuk Kim wrote: > > > If we don't check the current backing device status, balance_dirty_pages can > > fall into infinite pausing routine. > > > > This can be occurred when a lot of directories

Re: [PATCH] f2fs: check bdi->dirty_exceeded when trying to skip data writes

2014-07-01 Thread Andrew Morton
On Sat, 28 Jun 2014 20:58:38 +0900 Jaegeuk Kim wrote: > If we don't check the current backing device status, balance_dirty_pages can > fall into infinite pausing routine. > > This can be occurred when a lot of directories make a small number of dirty > dentry pages including files. > > ... > >

[PATCH] f2fs: check bdi->dirty_exceeded when trying to skip data writes

2014-06-28 Thread Jaegeuk Kim
If we don't check the current backing device status, balance_dirty_pages can fall into infinite pausing routine. This can be occurred when a lot of directories make a small number of dirty dentry pages including files. Reported-by: Brian Chadwick Signed-off-by: Jaegeuk Kim --- fs/f2fs/node.c |