]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: check snapset in journal_cow_dentry()
authorYan, Zheng <zyan@redhat.com>
Tue, 10 Mar 2015 04:01:32 +0000 (12:01 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 18 Mar 2015 06:25:44 +0000 (14:25 +0800)
commit7f2ddf598e5bbac975824705beab5653b5c5d1dd
tree0b04941456bb0962c4c1c2687dfb8920ece8f80d
parent7ae66c495edeaa1d598520fdc51c581131154d9e
mds: check snapset in journal_cow_dentry()

Removing snapshot also increases snaprealm's sequence number.
So only using snaprealm's sequence number to decide if we should
COW dentry is too loose. This patch makes journal_cow_dentry()
also check snaprealm's snapset.

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