From ddc06f112474f3a3acfd306f03454a259ec249f0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 25 Mar 2011 20:17:53 -0700 Subject: [PATCH] journaler: fix comments Signed-off-by: Sage Weil --- src/osdc/Journaler.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/osdc/Journaler.cc b/src/osdc/Journaler.cc index 6b6c82296eb31..bcf43f2d35089 100644 --- a/src/osdc/Journaler.cc +++ b/src/osdc/Journaler.cc @@ -638,11 +638,6 @@ void Journaler::_assimilate_prefetch() } } -/* NOTE: this could be slightly smarter... we could allow - * multiple reads to be in progress. e.g., if we prefetch, but - * then discover we need even more for an especially large entry. - * i don't think that circumstance will arise particularly often. - */ void Journaler::_issue_read(int64_t len) { // make sure we're fully flushed @@ -718,9 +713,8 @@ void Journaler::_prefetch() } } -/* is_readable() - * return true if next entry is ready. - * kickstart read as necessary. +/* + * _is_readable() - return true if next entry is ready. */ bool Journaler::_is_readable() { @@ -763,6 +757,9 @@ bool Journaler::_is_readable() return false; } +/* + * is_readable() - kickstart prefetch, too + */ bool Journaler::is_readable() { bool r =_is_readable(); -- 2.39.5