diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-12-16 00:09:20 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-16 11:58:12 -0500 |
commit | c227f912732f204c0ec4a577ba812401ac4672af (patch) | |
tree | 86bb9eb87ccf717cbe486d1d1b7e0eab31e10cbc /fs/f2fs/data.c | |
parent | b3980910f746d885111db7252f664600de2a5ea3 (diff) |
f2fs: record dirty status of regular/symlink inode
Maintain regular/symlink inode which has dirty pages in global dirty list
and record their total dirty pages count like the way of handling directory
inode.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 90a2ffea875b..292a06cbea07 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c | |||
@@ -1180,7 +1180,7 @@ out: | |||
1180 | f2fs_balance_fs(sbi); | 1180 | f2fs_balance_fs(sbi); |
1181 | if (wbc->for_reclaim) { | 1181 | if (wbc->for_reclaim) { |
1182 | f2fs_submit_merged_bio(sbi, DATA, WRITE); | 1182 | f2fs_submit_merged_bio(sbi, DATA, WRITE); |
1183 | remove_dirty_dir_inode(inode); | 1183 | remove_dirty_inode(inode); |
1184 | } | 1184 | } |
1185 | return 0; | 1185 | return 0; |
1186 | 1186 | ||
@@ -1372,7 +1372,7 @@ static int f2fs_write_data_pages(struct address_space *mapping, | |||
1372 | if (locked) | 1372 | if (locked) |
1373 | mutex_unlock(&sbi->writepages); | 1373 | mutex_unlock(&sbi->writepages); |
1374 | 1374 | ||
1375 | remove_dirty_dir_inode(inode); | 1375 | remove_dirty_inode(inode); |
1376 | 1376 | ||
1377 | wbc->nr_to_write = max((long)0, wbc->nr_to_write - diff); | 1377 | wbc->nr_to_write = max((long)0, wbc->nr_to_write - diff); |
1378 | return ret; | 1378 | return ret; |