mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
f2fs: no need inc dirty pages under inode lock
No need inc dirty pages under inode lock Signed-off-by: Yunlei He <heyunlei@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
8975bdf482
commit
b951a4ec16
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user