ceph: warn on missing snap realm
authorSage Weil <sage@newdream.net>
Fri, 16 Jul 2010 19:00:02 +0000 (12:00 -0700)
committerSage Weil <sage@newdream.net>
Mon, 2 Aug 2010 03:11:42 +0000 (20:11 -0700)
Well, this Shouldn't Happen, so it would be helpful to know the caller when
it does.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/caps.c

index e3b848d7698de2dd65b2a69490937500d4394599..30acc7b046eeb0a5f0afb035148cb5ae7d524c23 100644 (file)
@@ -586,6 +586,7 @@ retry:
                } else {
                        pr_err("ceph_add_cap: couldn't find snap realm %llx\n",
                               realmino);
+                       WARN_ON(!realm);
                }
        }