فهرست منبع

ceph: warn on missing snap realm

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>
Sage Weil 15 سال پیش
والد
کامیت
b8cd07e78e
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      fs/ceph/caps.c

+ 1 - 0
fs/ceph/caps.c

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