]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: check export_pin on dirfrag load
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 3 May 2017 14:39:48 +0000 (10:39 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 4 May 2017 02:37:19 +0000 (22:37 -0400)
commit4cd4782da89b9680ebbbaa589b8b69eef20d89a1
tree0bcfbc956d659a7c954e9a51639b754ffa5b0704
parent63cbe330b76c419e9ea5baab1fd40ed5d9a14c72
mds: check export_pin on dirfrag load

Zheng's suggestion: "[maybe_export_pin is called by MDCache::add_inode() and
Migrator. For the first case, inode has no dirfrag (I think it's better to call
this function in CInode::get_or_open_dirfrag)"

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/CInode.cc
src/mds/CInode.h
src/mds/MDCache.cc