summaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2017-04-06 09:12:18 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-08 11:52:01 +0200
commit9a89b88508d4a3bba128a7dfac29016d8cf690ea (patch)
tree4bd9a74714b13a34ebea0d9d6bd9fc4d9e89f6c3 /kernel/bpf/arraymap.c
parent4dee48a9acc5b0629f125fa8db104f2e682a8331 (diff)
md/raid10: reset the 'first' at the end of loop
commit 6f287ca6046edd34ed83aafb7f9033c9c2e809e2 upstream. We need to set "first = 0' at the end of rdev_for_each loop, so we can get the array's min_offset_diff correctly otherwise min_offset_diff just means the last rdev's offset diff. [only the first chunk, due to b506335e5d2b ("md/raid10: skip spare disk as 'first' disk") being already applied - gregkh] Suggested-by: NeilBrown <neilb@suse.com> Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Reviewed-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com> Cc: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions