summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorYunlei He <heyunlei@huawei.com>2016-05-13 08:57:43 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2016-05-17 00:32:01 +0200
commitb951a4ec165af4973b2bd9c80fb5845fbd840435 (patch)
tree935436b0629fb79fe435ab5132a1a0832d3913e6 /fs/f2fs/checkpoint.c
parentf2fs: fix incorrect error path handling in f2fs_move_rehashed_dirents (diff)
downloadlinux-b951a4ec165af4973b2bd9c80fb5845fbd840435.tar.xz
linux-b951a4ec165af4973b2bd9c80fb5845fbd840435.zip
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>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c2
1 files changed, 1 insertions, 1 deletions
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);
}