]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
f2fs: introduce get_checkpoint_version for cleanup
authorTiezhu Yang <kernelpatch@126.com>
Fri, 30 Sep 2016 00:24:53 +0000 (08:24 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 1 Oct 2016 00:34:37 +0000 (17:34 -0700)
commitfc0065adb202518e25fb929cda7d5887a456f774
tree6282a9d5a8b3c659b2e07d17412350223bebce61
parent3fa565039e3338f60d7e7a8e818835dabdea764b
f2fs: introduce get_checkpoint_version for cleanup

There exists almost same codes when get the value of pre_version
and cur_version in function validate_checkpoint, this patch adds
get_checkpoint_version to clean up redundant codes.

Signed-off-by: Tiezhu Yang <kernelpatch@126.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c