]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph: simplify CInode::maybe_export_pin()
authorYan, Zheng <zyan@redhat.com>
Tue, 16 May 2017 01:16:46 +0000 (09:16 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 16 May 2017 09:05:45 +0000 (17:05 +0800)
commit9d2d032e2f2282e2a249254b4ae8f63129d8648b
tree42dd18e65cc8cc52bc1d40579785a27809e7f185
parent6f1bf0dd9b57362ffa8d4bdff3641ae87c6674ea
ceph: simplify CInode::maybe_export_pin()

move most works into MDBalancer::handle_export_pins(), this simplifies
the code a lot.

Another reason for this change is that creating aux subtree directly in
CInode::maybe_export_pin() confuses journal replay (the subtree map check
when replaying ESubtreeMap).

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