f2fs: give a chance to detach from dirty list
authorChao Yu <yuchao0@huawei.com>
Tue, 11 Oct 2016 14:57:01 +0000 (22:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 23 Nov 2016 20:10:51 +0000 (12:10 -0800)
commit933439c8f3474e329709b715b43b0b8168bbecf8
treee2048039efe1839eb93849ae8fd012d1c30591c7
parent2dd15654ac0abe587a245a09a7823bbbd588bfb7
f2fs: give a chance to detach from dirty list

If there is no dirty pages in inode, we should give a chance to detach
the inode from global dirty list, otherwise it needs to call another
unnecessary .writepages for detaching.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/gc.c
fs/f2fs/inline.c
fs/f2fs/node.c
fs/f2fs/segment.c