equal
deleted
inserted
replaced
192 @return TBool ETrue if cache is full, otherwise EFalse. |
192 @return TBool ETrue if cache is full, otherwise EFalse. |
193 */ |
193 */ |
194 TBool CDynamicDirCache::CacheIsFull() const |
194 TBool CDynamicDirCache::CacheIsFull() const |
195 { |
195 { |
196 // active page, locked page and unlocked page |
196 // active page, locked page and unlocked page |
197 return (iLockedQCount + iUnlockedQCount + 1 >= iMaxSizeInPages); |
197 return (iLockedQCount + iUnlockedQCount >= iMaxSizeInPages); |
198 } |
198 } |
199 |
199 |
200 /** |
200 /** |
201 Return the maximum allowed page number of the cache. |
201 Return the maximum allowed page number of the cache. |
202 */ |
202 */ |