f2fs: clean up hash codes
authorChao Yu <yuchao0@huawei.com>
Thu, 30 Nov 2017 11:28:21 +0000 (19:28 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:29:30 +0000 (13:29 -0800)
commit233b197757c02bdf7f4da4517e3aa6f30ffbc677
treee00bb525a47ab13774e745289dc934e7575d91df
parent58d550e5da7c7bb4f2e42175cc1dafbf7bb50a49
f2fs: clean up hash codes

f2fs_chksum and f2fs_crc32 use the same 'crc32' crypto engine, also
their implementation are almost the same, except with different
shash description context.

Introduce __f2fs_crc32 to wrap the common codes, and reuse it in
f2fs_chksum and f2fs_crc32.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h