]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: adjust dir_auth_pins on steal_dentry
authorSage Weil <sage@newdream.net>
Wed, 17 Nov 2010 20:31:18 +0000 (12:31 -0800)
committerSage Weil <sage@newdream.net>
Wed, 17 Nov 2010 21:06:03 +0000 (13:06 -0800)
dir_auth_pins is a counter of dentry auth_pins in the current dir; those
need to be added in when stealing.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/CDir.cc

index ce1e925812cb97256ceabc4ee761142a314c434b..6e5298d7286fc629dd4915c1d308aa7957d01611 100644 (file)
@@ -630,6 +630,7 @@ void CDir::steal_dentry(CDentry *dn)
   }
 
   nested_auth_pins += dn->auth_pins + dn->nested_auth_pins;
+  dir_auth_pins += dn->auth_pins;
   nested_anchors += dn->nested_anchors;
   if (dn->is_dirty()) 
     num_dirty++;