]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix CInode::find_snaprealm()
authorYan, Zheng <zyan@redhat.com>
Mon, 7 Aug 2017 07:23:18 +0000 (15:23 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 4 Dec 2017 04:01:18 +0000 (12:01 +0800)
commitda12abbd0f07fe05dbdf4c0971a5a1fffbd03b4b
tree8bd548421f45edb0586b2b08537690bc0a705a76
parent3f8b332b8fb090ee6a97ed8dc88a5fd1bc4a4eb1
mds: fix CInode::find_snaprealm()

If inode has no parent dentry (newly created), CInode::find_snaprealm()
should try the oldest projected parent.

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