aboutsummaryrefslogtreecommitdiff
path: root/tools/scripts
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-10-11 22:31:34 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:14 +0200
commit8235901a0acd68d1564204dc9702b395e675e689 (patch)
treebf9b521ae810480e290365e864cca1c2e74a3781 /tools/scripts
parent172d6c474c29f50aa88f96ddbde56a291b64e783 (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 'tools/scripts')
0 files changed, 0 insertions, 0 deletions