]> git.baikalelectronics.ru Git - kernel.git/commit
raid5-cache: restrict the use area of the log_offset variable
authorJackieLiu <liuyun01@kylinos.cn>
Wed, 2 Nov 2016 09:02:39 +0000 (17:02 +0800)
committerShaohua Li <shli@fb.com>
Mon, 7 Nov 2016 23:08:22 +0000 (15:08 -0800)
commit3d90a02582d0b41e178b7870033099bf0e939660
tree36128be0fda73ff8a3ecb9cab287ce93b807e303
parent80161a8b249a9261efed6a5cb5d3003efb55be0a
raid5-cache: restrict the use area of the log_offset variable

We can calculate this offset by using ctx->meta_total_blocks,
without passing in from the function

Signed-off-by: JackieLiu <liuyun01@kylinos.cn>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c