summaryrefslogtreecommitdiff
path: root/fs/fat
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-05-07 20:47:40 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-05-08 19:54:22 +0900
commit59bbd474abb9dd6a0c1a74df758ec29c7a8b150f (patch)
tree0e1f7f74108b0e9cc4a7aa8a9d80e333344a366a /fs/fat
parent23d38844276680abbf33624f56b6779d43f53633 (diff)
f2fs: cover free_nid management with spin_lock
After build_free_nids() searches free nid candidates from nat pages and current journal blocks, it checks all the candidates if they are allocated so that the nat cache has its nid with an allocated block address. In this procedure, previously we used list_for_each_entry_safe(fnid, next_fnid, &nm_i->free_nid_list, list). But, this is not covered by free_nid_list_lock, resulting in null pointer bug. This patch moves this checking routine inside add_free_nid() in order not to use the spin_lock. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/fat')
0 files changed, 0 insertions, 0 deletions