f2fs: set cached_en after checking finally
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Jun 2015 01:22:38 +0000 (18:22 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Aug 2015 21:09:54 +0000 (14:09 -0700)
commit244f4fc1c530c4e486f0e4f0909c0514e4539ba2
tree49b1cd24dc8ebc1743fd4f94ba4df571dbe06e18
parentcbe91923a97c96d6a931f4b5b7e32083218a0251
f2fs: set cached_en after checking finally

This patch relocates cached_en not only to be covered by spin_lock, but also
to set once after checking out completely.

Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c