diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 6402e9372f6c498d81153bbe170f350caaf93a0e..3da6499a9e8276d1623e99c5496d122149ab7378 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); }