diff options
author | Chao Yu <yuchao0@huawei.com> | 2016-10-11 22:57:01 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 12:10:51 -0800 |
commit | 933439c8f3474e329709b715b43b0b8168bbecf8 (patch) | |
tree | e2048039efe1839eb93849ae8fd012d1c30591c7 /fs/f2fs/dir.c | |
parent | 2dd15654ac0abe587a245a09a7823bbbd588bfb7 (diff) | |
download | linux-933439c8f3474e329709b715b43b0b8168bbecf8.tar.gz linux-933439c8f3474e329709b715b43b0b8168bbecf8.tar.bz2 linux-933439c8f3474e329709b715b43b0b8168bbecf8.zip |
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>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r-- | fs/f2fs/dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 369f4513be37..4df6168f43de 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -742,6 +742,7 @@ void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page, ClearPagePrivate(page); ClearPageUptodate(page); inode_dec_dirty_pages(dir); + remove_dirty_inode(dir); } f2fs_put_page(page, 1); } |