mirror of
https://github.com/ceph/ceph
synced 2025-02-25 20:13:04 +00:00
journaler: fix comments
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
parent
d5fa16a476
commit
ddc06f1124
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user