]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: journal dirfrag accounted_{r,frag}stat on inode update
authorSage Weil <sage@newdream.net>
Thu, 9 Sep 2010 22:53:10 +0000 (15:53 -0700)
committerSage Weil <sage@newdream.net>
Thu, 9 Sep 2010 23:40:44 +0000 (16:40 -0700)
commit89af63e3db3ba3f526fa6730c4bcafeb841d435a
treef769e2fdaaee9081bec61566f21938434e736ede
parent30f97954e0fe50eaa69c1d3b3f52f72049710dcf
mds: journal dirfrag accounted_{r,frag}stat on inode update

When the inode sucks in the dir's updated frag info, we need to journal
the dirfrag update as well.  This ensures that any subsequent changes in
the dirfrag will be reflected by the difference between rstat and
accounted_rstat from the perspective of the journal contents (in case we
fail/recover during that process).
src/mds/CInode.cc
src/mds/CInode.h