imsm: FIX: Remove unused parameter from save_backup_imsm() interface
new_data parameter is not used in save_backup_imsm(). It is removed from function interface. Signed-off-by: Adam Kwolek <adam.kwolek@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
92144abfbe
commit
aea9317117
|
@ -7676,9 +7676,9 @@ void init_migr_record_imsm(struct supertype *st, struct imsm_dev *dev,
|
||||||
* and to write it to the Copy Area.
|
* and to write it to the Copy Area.
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* st : supertype information
|
* st : supertype information
|
||||||
|
* dev : imsm device that backup is saved for
|
||||||
* info : general array info
|
* info : general array info
|
||||||
* buf : input buffer
|
* buf : input buffer
|
||||||
* write_offset : address of data to backup
|
|
||||||
* length : length of data to backup (blocks_per_unit)
|
* length : length of data to backup (blocks_per_unit)
|
||||||
* Returns:
|
* Returns:
|
||||||
* 0 : success
|
* 0 : success
|
||||||
|
@ -7688,7 +7688,6 @@ int save_backup_imsm(struct supertype *st,
|
||||||
struct imsm_dev *dev,
|
struct imsm_dev *dev,
|
||||||
struct mdinfo *info,
|
struct mdinfo *info,
|
||||||
void *buf,
|
void *buf,
|
||||||
int new_data,
|
|
||||||
int length)
|
int length)
|
||||||
{
|
{
|
||||||
int rv = -1;
|
int rv = -1;
|
||||||
|
@ -8810,8 +8809,7 @@ static int imsm_manage_reshape(
|
||||||
* in backup general migration area
|
* in backup general migration area
|
||||||
*/
|
*/
|
||||||
if (save_backup_imsm(st, dev, sra,
|
if (save_backup_imsm(st, dev, sra,
|
||||||
buf + start_buf_shift,
|
buf + start_buf_shift, copy_length)) {
|
||||||
ndata, copy_length)) {
|
|
||||||
dprintf("imsm: Cannot save stripes to "
|
dprintf("imsm: Cannot save stripes to "
|
||||||
"target devices\n");
|
"target devices\n");
|
||||||
goto abort;
|
goto abort;
|
||||||
|
|
Loading…
Reference in New Issue