From a7ffdbe22cecaed59b5d76a5f003d68907d64240 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Fri, 12 Sep 2014 15:53:45 -0700 Subject: 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 --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/f2fs/super.c') diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 3275e73..b5af9be 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -366,7 +366,7 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb) /* Initialize f2fs-specific inode info */ fi->vfs_inode.i_version = 1; - atomic_set(&fi->dirty_dents, 0); + atomic_set(&fi->dirty_pages, 0); fi->i_current_depth = 1; fi->i_advise = 0; rwlock_init(&fi->ext.ext_lock); -- cgit v1.1