[Devel] [PATCH 2/2] ploop: Make PLOOP_IOC_FREEBLKS always return 0
Kirill Tkhai
ktkhai at virtuozzo.com
Wed Apr 10 12:19:18 MSK 2019
This passes balloon file blocks to kernel.
New native discard scheme should send discard
in these blocks. Make it return 0 for a while
to make tests happy (later, it will be needed
to implement cycle, sending discards in the blocks).
Note, that the ioctl won't return any data
to userspace anymore, since in new scheme
it's not needed to call PLOOP_IOC_RELOCBLKS
after that (everything should be made
in PLOOP_IOC_FREEBLKS).
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/block/ploop/dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c
index 949617d5b14f..37685356d08a 100644
--- a/drivers/block/ploop/dev.c
+++ b/drivers/block/ploop/dev.c
@@ -4555,7 +4555,7 @@ static int ploop_freeblks_ioc(struct ploop_device *plo, unsigned long arg)
int i;
int rc = 0;
- return -EINVAL;
+ return 0;
if (list_empty(&plo->map.delta_list))
return -ENOENT;
More information about the Devel
mailing list