]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: check snaprealm before drop dentries in deleted directory
authorYan, Zheng <zyan@redhat.com>
Fri, 12 Dec 2014 02:00:53 +0000 (10:00 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 5 Feb 2015 14:40:37 +0000 (22:40 +0800)
commit32b1a9a1cd351c3da7e3af1948f5624969d7c1ce
tree0df44e06a92775f6b7b8d24951099110a8462cfb
parent1479300a68209688b97c60210b37f330f178819c
mds: check snaprealm before drop dentries in deleted directory

There is an optimization that drop dentries in deleted directory,
so that MDS can purge corresponding inode faster. We need to check
if the deleted directory is still referenced by any snapshot. If
it is, we can't drop dentries or skip committing dirfrags to object
store. The simplest method to check if a delted directory is
potentially referenced by snaphosts is checking diri->snaprealm.

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