From 95d65bc2a19a84e09e8c6c2e25fc8599b574a92a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 11 Jan 2009 16:48:02 -0800 Subject: [PATCH] mds: fix CInode::adjust_nested_auth_pin() Adjust nested_auth_pins even if no parent. There will be eventually. --- src/mds/CInode.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 588d703ca207e..90516a84bfd0b 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -1103,15 +1103,14 @@ void CInode::auth_unpin(void *by) void CInode::adjust_nested_auth_pins(int a) { - if (!parent) return; nested_auth_pins += a; - dout(35) << "adjust_nested_auth_pins by " << a << " now " << auth_pins << "+" << nested_auth_pins << dendl; assert(nested_auth_pins >= 0); - parent->adjust_nested_auth_pins(a, 0); + if (parent) + parent->adjust_nested_auth_pins(a, 0); } void CInode::adjust_nested_anchors(int by) -- 2.39.5