]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: properly update rstat/fragstat when fragmentating directory
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 19 Sep 2013 05:37:05 +0000 (13:37 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Sat, 5 Oct 2013 03:31:11 +0000 (11:31 +0800)
commit2eb863de2594fdae02fa5ab3056038cc12348f0c
tree989a1d6e2cdf17ed2df507e865ac9776424c651d
parentf989396ea562144c7cbc9de5ca606b451a121f88
mds: properly update rstat/fragstat when fragmentating directory

The stale rstat/dirstat check in CDir::merge() is wrong. dirfrag's
rstat/fragstat is stale if the accounted rstat/fragstat version isn't
equal to inode's rstat/dirstat version.

For CDir::split(), no need to worry about if the rstat/fragstat of the
origin dirfrag is stale. If it's stale, the rstat/fragstat of the
resulting dirfrags are stale too.

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