]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit3fd880af4174d724d209a890101962b00d5d33d4
tree36128be0fda73ff8a3ecb9cab287ce93b807e303
parentcc6167b4f3b3caabe973ca12612ac7d60aae0cfc
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