MFC r272509 (by delphi):
Diff reduction with upstream Sponsored by: Multiplay
This commit is contained in:
parent
259bd5c13f
commit
48282fa7cc
@ -1997,8 +1997,8 @@ zvol_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t *cr, int *rvalp)
|
||||
*/
|
||||
if (df.df_start >= zv->zv_volsize)
|
||||
break; /* No need to do anything... */
|
||||
if (df.df_start + df.df_length > zv->zv_volsize)
|
||||
df.df_length = DMU_OBJECT_END;
|
||||
|
||||
mutex_exit(&spa_namespace_lock);
|
||||
|
||||
rl = zfs_range_lock(&zv->zv_znode, df.df_start, df.df_length,
|
||||
RL_WRITER);
|
||||
@ -2037,7 +2037,7 @@ zvol_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t *cr, int *rvalp)
|
||||
dmu_objset_pool(zv->zv_objset), 0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
return (error);
|
||||
}
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user