def _uncache_ours_upto(fd, offset, first_region, remaining_regions):
 (rstart, rlen) = first_region
 while ((rstart is not None) and (((rstart + rlen) * sc_page_size) <= offset)):
  _fadvise_pages_done(fd, rstart, rlen)
  (rstart, rlen) = next(remaining_regions, (None, None))
 return (rstart, rlen)

def _uncache_ours_upto ( fd , offset , first_region , remaining_regions ) : ( rstart , rlen ) = first_region while ( ( rstart is not None ) and ( ( ( rstart + rlen ) * sc_page_size ) <= offset ) ) : _fadvise_pages_done ( fd , rstart , rlen ) ( rstart , rlen ) = next ( remaining_regions , ( None , None ) ) return ( rstart , rlen )
uncache the pages of fd indicated by first_region and remaining_regions that are before offset .