[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
- [Qemu-block] [PATCH v3 0/8] xen_disk: legacy code removal and cleanup, Paul Durrant, 2018/05/04
- [Qemu-block] [PATCH v3 7/8] xen_disk: use a single entry iovec, Paul Durrant, 2018/05/04
- [Qemu-block] [PATCH v3 8/8] xen_disk: be consistent with use of xendev and blkdev->xendev, Paul Durrant, 2018/05/04
- Re: [Qemu-block] [PATCH v3 8/8] xen_disk: be consistent with use of xendev and blkdev->xendev,
Anthony PERARD <=
- [Qemu-block] [PATCH v3 5/8] xen_disk: remove use of grant map/unmap, Paul Durrant, 2018/05/04
- [Qemu-block] [PATCH v3 3/8] xen: remove other open-coded use of libxengnttab, Paul Durrant, 2018/05/04
- [Qemu-block] [PATCH v3 6/8] xen_backend: make the xen_feature_grant_copy flag private, Paul Durrant, 2018/05/04
- [Qemu-block] [PATCH v3 1/8] xen_backend: add grant table helpers, Paul Durrant, 2018/05/04