f2fs: check s_dirty under cp_mutex
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 Aug 2014 01:37:46 +0000 (18:37 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 21 Aug 2014 16:21:02 +0000 (09:21 -0700)
commit8501017e50fb7586ba522a2913ce664d6c2024f6
treebfb14ec6356d4d760553e235644be9f146462eff
parent5274651927a76c947469a589e3d2a9adbd075da6
f2fs: check s_dirty under cp_mutex

It needs to check s_dirty under cp_mutex, since s_dirty is reset under that
mutex.
And previous condition was not correct, since we can omit doing checkpoint
when checkpoint was done followed by all the node pages were written back.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/super.c