Re: [f2fs-dev] [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. > > ... > >

[f2fs-dev] [PATCH 2/2] f2fs: introduce f2fs_write_failed to handle error case when write

2014-07-01 Thread Chao Yu
When we fail in ->write_begin()/->direct_IO(), our allocated node block in disk and page cache are still kept, despite these may not be used again. This patch introduce f2fs_write_failed() to handle the error case of these two interfaces, it will truncate page cache and blocks of this file accordi

[f2fs-dev] [PATCH 1/2] f2fs: check name_len of dir entry to prevent from deadloop

2014-07-01 Thread Chao Yu
We assume that modification of some special application could result in zeroed name_len, or it is consciously made by somebody. We will deadloop in find_in_block when name_len of dir entry is zero. This patch is added for preventing deadloop in above scenario. Signed-off-by: Chao Yu --- fs/f2fs