Searched hist:"2411 cf5b" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/f2fs/ |
H A D | node.c | 2411cf5b Tue Oct 11 09:31:34 CDT 2016 Chao Yu <yuchao0@huawei.com> 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> 2411cf5b Tue Oct 11 09:31:34 CDT 2016 Chao Yu <yuchao0@huawei.com> 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>
|