mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
drbd: add context parameter to expect() macro
Originally-from: Andreas Gruenbacher <agruen@linbit.com> Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com> Link: https://lore.kernel.org/r/20221201110349.1282687-6-christoph.boehmwalder@linbit.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
e3fa02d7d4
commit
677b367275
@@ -1543,7 +1543,7 @@ int drbd_adm_disk_opts(struct sk_buff *skb, struct genl_info *info)
|
||||
goto fail_unlock;
|
||||
}
|
||||
|
||||
if (!expect(new_disk_conf->resync_rate >= 1))
|
||||
if (!expect(device, new_disk_conf->resync_rate >= 1))
|
||||
new_disk_conf->resync_rate = 1;
|
||||
|
||||
sanitize_disk_conf(device, new_disk_conf, device->ldev);
|
||||
|
||||
Reference in New Issue
Block a user