f2fs: fix to update largest extent under lock
authorChao Yu <yuchao0@huawei.com>
Tue, 11 Oct 2016 14:57:05 +0000 (22:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 23 Nov 2016 20:10:55 +0000 (12:10 -0800)
commitb691d98fdd4cc2514c60fd6975e6016da203e64f
treed76514a5fdeb82f28472b28521c1315ec8d912cd
parent58736fa60f6ae659ac72da8b1580c308b47e8edd
f2fs: fix to update largest extent under lock

In order to avoid racing problem, make largest extent cache being updated
under lock.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inode.c