]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix MDCache::journal_cow_dentry()
authorYan, Zheng <zyan@redhat.com>
Mon, 15 Dec 2014 01:50:23 +0000 (09:50 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 5 Feb 2015 14:40:37 +0000 (22:40 +0800)
commit1d9de22606087267a228ac9d69366a01dfe5982c
treebba1000add83a4ee13b7ddb62414e1096ad8000c
parent32b1a9a1cd351c3da7e3af1948f5624969d7c1ce
mds: fix MDCache::journal_cow_dentry()

Use parent directory's snaprealm to decide if we should cow dentry.
Otherwise we may create orphan dentry when deleting an directory with
snaprealm.

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