From: Yunlei He Date: Fri, 13 May 2016 06:57:43 +0000 (+0800) Subject: f2fs: no need inc dirty pages under inode lock X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b951a4ec165af4973b2bd9c80fb5845fbd840435;p=linux-beck.git f2fs: no need inc dirty pages under inode lock No need inc dirty pages under inode lock Signed-off-by: Yunlei He Signed-off-by: Jaegeuk Kim --- 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); }