]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: touch missed dentry when fetching dir on path traverse
authorSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 16:46:29 +0000 (09:46 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 16:46:29 +0000 (09:46 -0700)
commit9b9336774019d3c304562c427c109af2bb6f199e
treeb3559881d099db0121a44e87c797c00710647db9
parent22d211338f34d20196925093957379959f5a9b54
mds: touch missed dentry when fetching dir on path traverse

We can get into a loop when doing a path traverse if we miss on a large
directory and then end up trimming the result we need before handling the
original request.  To avoid this, we simply put the wanted dentry at the
top of the LRU (instead of midpoint).

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/CDir.cc
src/mds/CDir.h
src/mds/MDCache.cc
src/mds/MDCache.h