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@google.com>
Mon, 25 Sep 2017 22:04:52 +0000 (15:04 -0700)
commit75bb19d8b7479bfa62aef3a5e13bf737144ef76b
treec10ca30acf8413de483e2e332245cd5389c442dc
parentab38818bdd9a67f9ce6aade05f61e373d45ae132
f2fs: give a chance to detach from dirty list

commit 933439c8f3474e329709b715b43b0b8168bbecf8 upstream.

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