Commit 8ef0f6b7 authored by Pavel Emelyanov's avatar Pavel Emelyanov

locks: Remove unused arg from dump_one_file_lock

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 961655dc
...@@ -63,9 +63,9 @@ void free_file_locks(void) ...@@ -63,9 +63,9 @@ void free_file_locks(void)
INIT_LIST_HEAD(&file_lock_list); INIT_LIST_HEAD(&file_lock_list);
} }
static int dump_one_file_lock(FileLockEntry *fle, const struct cr_fdset *fdset) static int dump_one_file_lock(FileLockEntry *fle)
{ {
pr_info("flag: %d,type: %d,pid: %d,fd: %d,start: %8"PRIx64",len: %8"PRIx64"\n", pr_info("LOCK flag: %d,type: %d,pid: %d,fd: %d,start: %8"PRIx64",len: %8"PRIx64"\n",
fle->flag, fle->type, fle->pid, fle->fd, fle->start, fle->len); fle->flag, fle->type, fle->pid, fle->fd, fle->start, fle->len);
return pb_write_one(fdset_fd(glob_fdset, CR_FD_FILE_LOCKS), return pb_write_one(fdset_fd(glob_fdset, CR_FD_FILE_LOCKS),
...@@ -176,7 +176,7 @@ int dump_task_file_locks(struct parasite_ctl *ctl, ...@@ -176,7 +176,7 @@ int dump_task_file_locks(struct parasite_ctl *ctl,
else else
fle.len = (atoll(fl->end) + 1) - fl->start; fle.len = (atoll(fl->end) + 1) - fl->start;
ret = dump_one_file_lock(&fle, fdset); ret = dump_one_file_lock(&fle);
if (ret) { if (ret) {
pr_err("Dump file lock failed!\n"); pr_err("Dump file lock failed!\n");
goto err; goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment