Re: [PATCH] cowlinks v2

Jamie Lokier
2004-04-03T13:15:52Z

Pavel Machek wrote:
> > > Could you not change it back to a normal inode when refcount becomes 1?
> >
> > You can only do that if the cowid object has a pointer to the last
> > remaining reference to it. That's possible, but more complicated and
> > would incur a little more I/O per cow operation.
>
> You'd have to have pointers to all references to it... because you
> can't tell in advance which one will be the last to go away.

Exactly. Each of the cow pointers would need to be linked in a doubly
linked list containing them all.

-- Jamie