On Thu, Aug 29, 2019 at 10:08:21PM -0500, Eric Blake wrote:
> Anywhere that we compute 'f = container_of(b)' then use 'f->backend.',
> we can instead just use 'b->'.  Similarly, during registration, we can
> use the 'filename' input rather than our just-copied 'f->filename'.

This essentially follows from the definition of container_of.

I couldn't spot any mistakes in the changes below, and in any case
strong typing should prevent mistakes.

So yes, ACK.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to