From 27ac80ee91287b41ddc16d6ad8a02ce31380f9f9 Mon Sep 17 00:00:00 2001 From: sageweil Date: Thu, 1 Mar 2007 16:37:00 +0000 Subject: [PATCH] comment git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1148 29311d96-e01e-0410-9327-a35deaab8ce9 --- trunk/ceph/osdc/ObjectCacher.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/ceph/osdc/ObjectCacher.cc b/trunk/ceph/osdc/ObjectCacher.cc index e2520f595096d..46bd1fb416ca7 100644 --- a/trunk/ceph/osdc/ObjectCacher.cc +++ b/trunk/ceph/osdc/ObjectCacher.cc @@ -638,6 +638,11 @@ void ObjectCacher::flush(off_t amount) dout(10) << "flush " << amount << endl; + /* + * NOTE: we aren't actually pulling things off the LRU here, just looking at the + * tail item. Then we call bh_write, which moves it to the other LRU, so that we + * can call lru_dirty.lru_get_next_expire() again. + */ off_t did = 0; while (amount == 0 || did < amount) { BufferHead *bh = (BufferHead*) lru_dirty.lru_get_next_expire(); -- 2.39.5