]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mdcache: change replay trimming a bit.
authorGreg Farnum <gregf@hq.newdream.net>
Mon, 20 Dec 2010 21:32:43 +0000 (13:32 -0800)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 6 Jan 2011 19:12:14 +0000 (11:12 -0800)
commit60a4189dd02e415712461ce8fa0fc6caee9d9745
tree81aee9526c1186a71723d1e83cc280eb7405f017
parentcd4cd01a03077fe80b27486fde4a092b85d5086c
mdcache: change replay trimming a bit.

Previously we were re-inserting dentrys on the open list. But if
there weren't any other available dentrys to trim, this could
have led to an infinite loop!
Now, we save them in a list and pop them back in once the trim
is done.

Signed-off-by: Greg Farnum <gregf@hq.newdream.net>
src/mds/MDCache.cc