md/r5cache: refactoring journal recovery code
authorSong Liu <songliubraving@fb.com>
Thu, 17 Nov 2016 23:24:42 +0000 (15:24 -0800)
committerShaohua Li <shli@fb.com>
Fri, 18 Nov 2016 21:27:45 +0000 (13:27 -0800)
commit9ed988f5dc673f009d78f7ac55c5da88e1cf58a0
tree2d5d9307dc7cde11b5a0938a5ce183fd371764cd
parent2c7da14b90a01e48b17a028de6050a796cfd6d8d
md/r5cache: refactoring journal recovery code

1. rename r5l_read_meta_block() as r5l_recovery_read_meta_block();
2. pull the code that initialize r5l_meta_block from
   r5l_log_write_empty_meta_block() to a separate function
   r5l_recovery_create_empty_meta_block(), so that we can reuse this
   piece of code.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c