]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: match bottom half of assilate_dirty_rstat_inodes with a dir flag
authorSage Weil <sage@newdream.net>
Fri, 5 Nov 2010 05:44:01 +0000 (22:44 -0700)
committerSage Weil <sage@newdream.net>
Fri, 5 Nov 2010 05:44:01 +0000 (22:44 -0700)
commit63c1ad84d291fb474f1d085e3221c9c28ac3f956
tree5603863c805cf22308b51a97ad99bb5c38344d78
parent9b6d96e9aab411901344fe4169dcb06c74522d79
mds: match bottom half of assilate_dirty_rstat_inodes with a dir flag

We only do the assimilate_dirty_rstat_inodes if we do an update AND the
frag rstat was non-stale, but the bottom half (_finish) doesn't have the
same info to know whether we did it because the top half updates the
fragstat version.  Use a flag to indicate we've updated the dirfrag so
the bottom half will only run when needed.

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