提交 b951a4ec 编写于 作者: Y Yunlei He 提交者: Jaegeuk Kim

f2fs: no need inc dirty pages under inode lock

No need inc dirty pages under inode lock
Signed-off-by: NYunlei He <heyunlei@huawei.com>
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 8975bdf4
...@@ -787,9 +787,9 @@ void update_dirty_page(struct inode *inode, struct page *page) ...@@ -787,9 +787,9 @@ void update_dirty_page(struct inode *inode, struct page *page)
spin_lock(&sbi->inode_lock[type]); spin_lock(&sbi->inode_lock[type]);
__add_dirty_inode(inode, type); __add_dirty_inode(inode, type);
inode_inc_dirty_pages(inode);
spin_unlock(&sbi->inode_lock[type]); spin_unlock(&sbi->inode_lock[type]);
inode_inc_dirty_pages(inode);
SetPagePrivate(page); SetPagePrivate(page);
f2fs_trace_pid(page); f2fs_trace_pid(page);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册