I believe bufreset can be called at any time and b->cbi (the current cached block) can point to anything. Either way, that block is never returned to the Disc's free list so that file address won't be reused from that point on.
On Fri, Aug 12, 2016 at 7:16 PM, James A. Robinson <j...@highwire.org> wrote: > Have you checked whether or not that final block is > special in some way? For example only mapped to > memory and not to disk blocks? > > Jim >