]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: CDir: implement scrub_local() and call it in CInode::validate_disk_state()
authorGreg Farnum <gfarnum@redhat.com>
Tue, 20 Jan 2015 00:34:05 +0000 (16:34 -0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 4 Nov 2015 09:17:24 +0000 (17:17 +0800)
commita2e3657e45792224120b7c3ccc162c03e42e3a7a
tree9aec773eb4a34a2c2c733d6e165a9daeed4fa0ad
parentfc6bd3379f121db49ada8e0afe813314355b744d
mds: CDir: implement scrub_local() and call it in CInode::validate_disk_state()

Add another set of scrub stamps for the local scrub, which map onto the fnode
local scrub members.  Use it in CInode::validate_disk_state() instead of the
call to check_rstats, because this way we bump the scrub stats, and also
in scrub_initialize() because we know we'll have everything we need in
memory at that time, while we might not later on.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mds/CDir.cc
src/mds/CDir.h
src/mds/CInode.cc