commit | 24928634f81b1592e83b37dcd89ed45c28f12feb | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Sun Aug 16 13:04:50 2015 -0700 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Thu Aug 20 09:00:14 2015 -0700 |
tree | 41ae5bc8bbb6b21f79bed92a59b5bd8cec99242d | |
parent | a21c20f0c812925085204fced932ac95f2a76bf0 [diff] |
f2fs: check the node block address of newly allocated nid This patch adds a routine which checks the block address of newly allocated nid. If an nid has already allocated by other thread due to subtle data races, it will result in filesystem corruption. So, it needs to check whether its block address was already allocated or not in prior to nid allocation as the last chance. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>