qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH v3 8/8] xen_disk: be consistent with use of xend


From: Anthony PERARD
Subject: Re: [Qemu-block] [PATCH v3 8/8] xen_disk: be consistent with use of xendev and blkdev->xendev
Date: Thu, 17 May 2018 12:07:50 +0100
User-agent: Mutt/1.9.5 (2018-04-13)

On Fri, May 04, 2018 at 08:26:07PM +0100, Paul Durrant wrote:
> Certain functions in xen_disk are called with a pointer to xendev
> (struct XenDevice *). They then use continer_of() to acces the surrounding

                                      ^ container_of

> blkdev (struct XenBlkDev) but then in various places use &blkdev->xendev
> when use of the original xendev pointer is shorter to express and clearly
> equivalent.
> 
> This patch is a purely cosmetic patch which makes sure there is a xendev
> pointer on stack for any function where the pointer is need on multiple
> occasions modified those functions to use it consistently.
> 
> Signed-off-by: Paul Durrant <address@hidden>

Acked-by: Anthony PERARD <address@hidden>

-- 
Anthony PERARD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]