From a5785c94bc1b7247454d5fc7dbff3c1dae175df7 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 4 Dec 2013 19:15:14 +0400 Subject: [PATCH] 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 Signed-off-by: Pavel Emelyanov --- files-reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files-reg.c b/files-reg.c index fb5d7ca17..728979d26 100644 --- a/files-reg.c +++ b/files-reg.c @@ -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;