diff options
| author | Yunlei He <heyunlei@huawei.com> | 2017-07-18 09:48:12 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-10-02 14:45:50 +0200 |
| commit | 2e189ce4099f519945b1cc7f27b404b14753cb31 (patch) | |
| tree | adcbc42114c45d70e4a52b8a9b9669bb85d99169 /kernel/sysctl_binary.c | |
| parent | 9d033fa3c414cb2f49b82390364b4eea0010a0ae (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 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
