2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

files-reg: Don't fail matching if ghost file is on BTRFS subvolume

In case if ghost file is on BTRFS subvolume we should not fail
but test if there is a match.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2013-12-04 19:15:14 +04:00
committed by Pavel Emelyanov
parent 9e6bd8c512
commit a5785c94bc

View File

@@ -270,7 +270,7 @@ struct file_remap *lookup_ghost_remap(u32 dev, u32 ino)
mutex_lock(ghost_file_mutex);
list_for_each_entry(gf, &ghost_files, list) {
if (gf->dev == dev && gf->ino == ino) {
if (phys_stat_dev_match(gf->dev, dev) && gf->ino == ino) {
gf->remap.users++;
mutex_unlock(ghost_file_mutex);
return &gf->remap;