Commit 7cdfc8b3 authored by Pavel Emelyanov's avatar Pavel Emelyanov

ghostf: Move remap_id ghost bit clear to open_remap_ghost

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 246d8336
...@@ -58,6 +58,7 @@ static int open_remap_ghost(struct reg_file_info *rfi, ...@@ -58,6 +58,7 @@ static int open_remap_ghost(struct reg_file_info *rfi,
GhostFileEntry *gfe = NULL; GhostFileEntry *gfe = NULL;
int gfd, ifd, ghost_flags; int gfd, ifd, ghost_flags;
rfe->remap_id &= ~REMAP_GHOST;
list_for_each_entry(gf, &ghost_files, list) list_for_each_entry(gf, &ghost_files, list)
if (gf->id == rfe->remap_id) if (gf->id == rfe->remap_id)
goto gf_found; goto gf_found;
...@@ -163,7 +164,6 @@ static int collect_remaps(void) ...@@ -163,7 +164,6 @@ static int collect_remaps(void)
goto tail; goto tail;
} }
rfe->remap_id &= ~REMAP_GHOST;
rfi = container_of(fdesc, struct reg_file_info, d); rfi = container_of(fdesc, struct reg_file_info, d);
pr_info("Configuring remap %#x -> %#x\n", rfi->rfe->id, rfe->remap_id); pr_info("Configuring remap %#x -> %#x\n", rfi->rfe->id, rfe->remap_id);
ret = open_remap_ghost(rfi, rfe); ret = open_remap_ghost(rfi, rfe);
......
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