Commit a5785c94 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9e6bd8c5
...@@ -270,7 +270,7 @@ struct file_remap *lookup_ghost_remap(u32 dev, u32 ino) ...@@ -270,7 +270,7 @@ struct file_remap *lookup_ghost_remap(u32 dev, u32 ino)
mutex_lock(ghost_file_mutex); mutex_lock(ghost_file_mutex);
list_for_each_entry(gf, &ghost_files, list) { 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++; gf->remap.users++;
mutex_unlock(ghost_file_mutex); mutex_unlock(ghost_file_mutex);
return &gf->remap; return &gf->remap;
......
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