• Yufen Yu's avatar
    md/raid5: add a new member of offset into r5dev · 7aba13b7
    Yufen Yu authored
    Add a new member of offset into struct r5dev. It indicates the
    offset of related dev[i].page. For now, since each device have a
    privated page, the value is always 0. Thus, we set offset as 0
    when allcate page in grow_buffers() and resize_stripes().
    
    To support following different page offset, we try to use the page
    offset rather than '0' directly for async_memcpy() and ops_run_io().
    
    We try to support different page offset for xor compution functions
    in the following. To avoid repeatly allocate a new array each time,
    we add a memory region into scribble buffer to record offset.
    
    No functional change.
    Signed-off-by: default avatarYufen Yu <yuyufen@huawei.com>
    Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
    7aba13b7
raid5.c 243 KB