f2fs: expand counting dirty pages in the inode page cache
Previously f2fs only counts dirty dentry pages, but there is no reason not to expand the scope. This patch changes the names on the management of dirty pages and to count dirty pages in each inode info as well. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
@@ -537,7 +537,7 @@ static void move_data_page(struct inode *inode, struct page *page, int gc_type)
|
||||
f2fs_wait_on_page_writeback(page, DATA);
|
||||
|
||||
if (clear_page_dirty_for_io(page))
|
||||
inode_dec_dirty_dents(inode);
|
||||
inode_dec_dirty_pages(inode);
|
||||
set_cold_data(page);
|
||||
do_write_data_page(page, &fio);
|
||||
clear_cold_data(page);
|
||||
|
Fai riferimento in un nuovo problema
Block a user