]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: journal dirfragtree change
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 18 Jan 2014 12:31:36 +0000 (20:31 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Mon, 17 Feb 2014 01:37:51 +0000 (09:37 +0800)
commitf3666ededcf52ef4a124aca768bd993cace4fdf6
treea6dfa9b9d8141fc4524a75de675057ec73bb2920
parentee7ac6fc66bca0e677af864f1a8fad758d77a2ca
mds: journal dirfragtree change

Introduce new flag DIRTYDFT to CDir and EMetaBlob::dirlump, the new
flag indicates the dirfrag is newly fragmented and the corresponding
dirfragtree change hasn't been propagate to the directory inode.

After fragmenting subtree dirfrags, make sure DIRTYDFT flag is set
on EMetaBlob::dirlump that correspond to the resulting dirfrags.
Journal replay code uses DIRTYDFT frag to decide if dirfragtree is
scattered dirty.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/CDir.cc
src/mds/CDir.h
src/mds/CInode.cc
src/mds/MDCache.cc
src/mds/Migrator.cc
src/mds/events/EMetaBlob.h
src/mds/journal.cc