f2fs: fix to keep project quota consistent
authorChao Yu <yuchao0@huawei.com>
Tue, 25 Sep 2018 07:36:02 +0000 (15:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 26 Oct 2018 18:27:10 +0000 (11:27 -0700)
commit34983b0428cac0e9ec793022b1998adfb57d5b3c
tree12bbdb8aef63f6a48dc112f5ef02808b86750c0a
parent4eb89a77bc2010d81626e9d16f943538820b4e34
f2fs: fix to keep project quota consistent

This patch does below changes to keep consistence of project quota data
in sudden power-cut case:
- update inode.i_projid and project quota atomically under lock_op() in
f2fs_ioc_setproject()
- recover inode.i_projid and project quota in recover_inode()

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