]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix purge_stray to be smart about NEW dentries
authorSage Weil <sage@newdream.net>
Tue, 6 Apr 2010 19:28:43 +0000 (12:28 -0700)
committerSage Weil <sage@newdream.net>
Tue, 6 Apr 2010 19:32:07 +0000 (12:32 -0700)
commitbe4a797e3e9cb920740487635372b5c351453fcc
tree21acd06cb6d2dc8ce8f7e1d1de7046d944a81d32
parent0efe4fbd0d49f7c968a54d146c71e338af554f47
mds: fix purge_stray to be smart about NEW dentries

Mark new stray dentries NEW.

After purge, remove new dentries immediately; leave others as NULL and
dirty so they get removed from the ondisk stray dir properly.
src/mds/CDentry.cc
src/mds/MDCache.cc