]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: convert get_*dirfrags to use vector
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 9 Mar 2019 20:09:46 +0000 (12:09 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 15 Mar 2019 21:33:08 +0000 (14:33 -0700)
commit1b1714c50b4c97cb1906407490f828d4ba4cfc41
treee0e1d859fbaebe6575a0f8b2067292e6a554ad2d
parent4cf04ca57f3c4fce7a3a5d699627d0760347fd11
mds: convert get_*dirfrags to use vector

The idea of this change is to use a more allocation efficient structure.

For reasons I don't understand, this patch caused CInode::get_nested_dirfrags
and CInode::get_subtree_dirfrags to fail to compile when in-lined in the
header. The problem was that the inlined methods tried to access the CDir
internals when CDir is an incomplete types. What confuses me is that those
inlined methods ever compiled. In any case, I have moved the methods to the
CInode.cc source to avoid the issue.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/CDir.cc
src/mds/CInode.cc
src/mds/CInode.h
src/mds/MDBalancer.cc
src/mds/MDBalancer.h
src/mds/MDCache.cc
src/mds/MDSRank.cc
src/mds/Migrator.cc
src/mds/OpenFileTable.cc
src/mds/Server.cc
src/mds/journal.cc