f2fs: get rid of kzalloc in __recover_inline_status
authorChao Yu <chao2.yu@samsung.com>
Tue, 6 Jan 2015 06:28:43 +0000 (14:28 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 10 Jan 2015 01:02:27 +0000 (17:02 -0800)
commit9e5ba77fdbe3fea86b1e36903dd696b24b1c4607
tree5bc6c2ce289f8011d68c1deb8756ab29abef8838
parent38aa0889b2504bbe68e47f51cf73bf7f0a7246bd
f2fs: get rid of kzalloc in __recover_inline_status

We use kzalloc to allocate memory in __recover_inline_status, and use this
all-zero memory to check the inline date content of inode page by comparing
them. This is low effective and not needed, let's check inline date content
directly.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
[Jaegeuk Kim: make the code more neat]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inode.c