diff options
author | Yunlei He <heyunlei@huawei.com> | 2017-07-18 09:48:12 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-07-26 19:34:30 -0700 |
commit | 8790568255f3f0b29ec417089c47008a3d493490 (patch) | |
tree | 253eee593f2970a466091901af3977813cd1738d /fs/f2fs/acl.c | |
parent | 76a9dd85d43b7b3d94e116437dc882e159887a6a (diff) |
f2fs: alloc new nids for xattr block in recovery
recovery file A: recovery file B:
-get_dnode_of_data
-alloc_nid
-recover_xattr_data
-set_node_addr(sbi, &ni, NEW_ADDR, false);
--->bug_on for nid has been used by file A
In recovery process, new allocated node blocks may "reuse" xattr block
nids, this patch alloc new nids for xattr blocks in recovery process to
avoid this problem.
Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/acl.c')
0 files changed, 0 insertions, 0 deletions