]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't mark scatter locks dirty when dirfrag is dirty
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 19 Mar 2014 03:09:07 +0000 (11:09 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Wed, 19 Mar 2014 03:35:56 +0000 (11:35 +0800)
The journal reply code has check that decides which scatter locks
should be marked as dirty. So don't unconditionally mark scatter
locks dirty when dirfrag is dirty

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

index f818d7c410a89181332a9d11df6a7add99bcab77..104212eae5ee93013fae64919ba99a92f4306628 100644 (file)
@@ -1001,8 +1001,6 @@ void EMetaBlob::replay(MDS *mds, LogSegment *logseg, MDSlaveUpdate *slaveup)
 
     if (lump.is_dirty()) {
       dir->_mark_dirty(logseg);
-      dir->get_inode()->filelock.mark_dirty();
-      dir->get_inode()->nestlock.mark_dirty();
 
       if (!(dir->fnode.rstat == dir->fnode.accounted_rstat)) {
        dout(10) << "EMetaBlob.replay      dirty nestinfo on " << *dir << dendl;