]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: allow negetive rstat
authorYan, Zheng <zheng.z.yan@intel.com>
Sun, 4 May 2014 02:15:36 +0000 (10:15 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 6 May 2014 23:10:16 +0000 (07:10 +0800)
commita09070ab45d5c8b6d66e930fff50aaa32cf20bb7
tree84a3b28c0165990e374206c0c4f2307e5a4cbf1c
parent22abd7b00698bec773ed5f20c70bd5361dd0229c
mds: allow negetive rstat

When splitting dirfrag, delta rstat is always added to the first new
dirfrag. Ancestors of the dirfrag may have nagtive rstat before the
delta rstat has been propagated to them. For example:

inode 100 n(v1 b-4096)
|- dir 100 n(v1 b-4096)
   |- dentry
      |- inode 101 n(v1 b-4096)
         |- dir 101.0* n(v1)/n(v1 b-4096)
         |- dir 101.1* n(v1)

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/CInode.cc
src/mds/MDCache.cc