f2fs: return -EIO when node id is not matched
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 1 Apr 2014 08:38:26 +0000 (17:38 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 1 Apr 2014 08:38:26 +0000 (17:38 +0900)
commit3bb5e2c8fe2296ddd9d864dcfb5ee1b77135f3ec
tree72c7494d7dc9a958ec262c5137c95b3e42ac7ee3
parent808a1d7490671a74ffa077cf92779c7b0c9f66da
f2fs: return -EIO when node id is not matched

During the cleaing of node segments, F2FS can get errored node blocks due to
data race between node page lock and its valid bitmap operations.
In that case, it needs to return an error to skip such the obsolete block copy.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c