]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: don't journal inode when merging subtrees
authorYan, Zheng <zyan@redhat.com>
Wed, 21 Dec 2016 09:32:52 +0000 (17:32 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 10 Jan 2017 07:23:30 +0000 (15:23 +0800)
commita4e5ad2ff42732f51bf588e16bfe79e21a75a5e6
treea5b3c5616618ec594a264bca44a29e24f885e071
parent2b7dd506677639c9997bce608718ab38f49ea534
mds: don't journal inode when merging subtrees

When doing subtree migration or cross subtree rename, we rdlock
fragtreelock of subtree boundaries' inodes. rdlock fragtreelock
has already journaled dirfragtree updates. I can't see why we
need to journal it again when merging subtrees.

The resaon I want to remove this code is that it can journal
unconnected dirfrag in the Migrator::export_reverse() case.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/MDCache.cc
src/mds/Migrator.cc