summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-10-11 22:31:34 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-12-01 10:34:25 -0800
commit75a192655e64b2a76433acdc759cbd509de1efac (patch)
tree8fb321a110f892ec718a1f8b68af58e7266f86ec /include
parent34a546cb043f95529a24ff042f2cdcf72b25b4f0 (diff)
f2fs: exclude free nids building and allocation
During nid allocation, it needs to exclude building and allocating flow of free nids, this is because while building free nid cache, there are two steps: a) load free nids from unused nat entries in NAT pages, b) update free nid cache by checking nat journal. The two steps should be atomical, otherwise an used nid can be allocated as free one after a) and before b). This patch adds missing lock which covers build_free_nids in unlock_operation and f2fs_balance_fs_bg to avoid that. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions