Commit 1c4bf763 authored by Jaegeuk Kim's avatar Jaegeuk Kim

Revert "f2fs: no need inc dirty pages under inode lock"

This reverts commit b951a4ec.

 Conflicts:
	fs/f2fs/checkpoint.c
parent 4340fa55
...@@ -793,13 +793,12 @@ void update_dirty_page(struct inode *inode, struct page *page) ...@@ -793,13 +793,12 @@ void update_dirty_page(struct inode *inode, struct page *page)
!S_ISLNK(inode->i_mode)) !S_ISLNK(inode->i_mode))
return; return;
if (type != FILE_INODE || test_opt(sbi, DATA_FLUSH)) { spin_lock(&sbi->inode_lock[type]);
spin_lock(&sbi->inode_lock[type]); if (type != FILE_INODE || test_opt(sbi, DATA_FLUSH))
__add_dirty_inode(inode, type); __add_dirty_inode(inode, type);
spin_unlock(&sbi->inode_lock[type]);
}
inode_inc_dirty_pages(inode); inode_inc_dirty_pages(inode);
spin_unlock(&sbi->inode_lock[type]);
SetPagePrivate(page); SetPagePrivate(page);
f2fs_trace_pid(page); f2fs_trace_pid(page);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment