summaryrefslogtreecommitdiff
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 6402e9372f6c..3da6499a9e82 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -787,9 +787,9 @@ void update_dirty_page(struct inode *inode, struct page *page)
spin_lock(&sbi->inode_lock[type]);
__add_dirty_inode(inode, type);
- inode_inc_dirty_pages(inode);
spin_unlock(&sbi->inode_lock[type]);
+ inode_inc_dirty_pages(inode);
SetPagePrivate(page);
f2fs_trace_pid(page);
}