[Devel] [PATCH RHEL8 COMMIT] ploop: Kill "get_delta_name" alias
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Jun 29 16:08:12 MSK 2021
The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.50
------>
commit 29047d5bf5e81c56664b2babe2ba05a752bd4152
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Tue Jun 29 16:08:12 2021 +0300
ploop: Kill "get_delta_name" alias
... after userspace stopped to use it in
https://jira.sw.ru/browse/PSBM-129693
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
==========================
Preparation for #PSBM-124550 (part 2)
Kirill Tkhai (14):
ploop: Kill "get_delta_name" alias
ploop: Use initial pio for COW
ploop: Rename cluster_pio into aux_pio
ploop: Shorten variable names
ploop: Rename in submit_cluster_write()
ploop: Use defer_pios() instead of manual code
ploop: Use array of pios instead of separate lists
ploop: Generalize dispatch_pios usage
ploop: Unify process_delta_wb()
ploop: Remove unused struct member
ploop: Rename page_nr
ploop: Return md page from ploop_bat_entries()
ploop: Kill dead check in ploop_attach_end_action()
ploop: Delay bio if md page is BUSY
---
drivers/md/dm-ploop-cmd.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/md/dm-ploop-cmd.c b/drivers/md/dm-ploop-cmd.c
index fff68ecc3c7b..bba1c293f088 100644
--- a/drivers/md/dm-ploop-cmd.c
+++ b/drivers/md/dm-ploop-cmd.c
@@ -1118,8 +1118,7 @@ static int ploop_get_event(struct ploop *ploop, char *result, unsigned int maxle
static bool msg_wants_down_read(const char *cmd)
{
/* TODO: kill get_delta_name */
- if (!strcmp(cmd, "get_delta_name") ||
- !strcmp(cmd, "get_img_name"))
+ if (!strcmp(cmd, "get_img_name"))
return true;
return false;
@@ -1167,8 +1166,7 @@ int ploop_message(struct dm_target *ti, unsigned int argc, char **argv,
if (argc != 2 || kstrtou64(argv[1], 10, &val) < 0)
goto unlock;
ret = ploop_notify_merged(ploop, val, forward);
- } else if (!strcmp(argv[0], "get_delta_name") ||
- !strcmp(argv[0], "get_img_name")) {
+ } else if (!strcmp(argv[0], "get_img_name")) {
if (argc != 2 || kstrtou64(argv[1], 10, &val) < 0)
goto unlock;
ret = ploop_get_delta_name_cmd(ploop, (u8)val, result, maxlen);
More information about the Devel
mailing list