From: Josh Durgin <josh.durgin@inktank.com>
To: Alex Elder <elder@inktank.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: [PATCH 3/7] rbd: pass null version pointer in add_snap()
Date: Mon, 30 Jul 2012 13:48:38 -0700 [thread overview]
Message-ID: <5016F326.8050107@inktank.com> (raw)
In-Reply-To: <501195BB.8030401@inktank.com>
On 07/26/2012 12:08 PM, Alex Elder wrote:
> rbd_header_add_snap() passes the address of a version variable to
> rbd_req_sync_exec(), but it ignores the result. Just pass a null
> pointer instead.
>
> Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
> ---
> drivers/block/rbd.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
> index 4d8b52c..eacf255 100644
> --- a/drivers/block/rbd.c
> +++ b/drivers/block/rbd.c
> @@ -1664,7 +1664,6 @@ static int rbd_header_add_snap(struct rbd_device
> *rbd_dev,
> u64 new_snapid;
> int ret;
> void *data, *p, *e;
> - u64 ver;
> struct ceph_mon_client *monc;
>
> /* we should create a snapshot only if we're pointing at the head */
> @@ -1689,7 +1688,7 @@ static int rbd_header_add_snap(struct rbd_device
> *rbd_dev,
>
> ret = rbd_req_sync_exec(rbd_dev, rbd_dev->header_name,
> "rbd", "snap_add",
> - data, p - data, &ver);
> + data, p - data, NULL);
>
> kfree(data);
>
next prev parent reply other threads:[~2012-07-30 20:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-26 19:01 [PATCH 0/7] rbd: more miscellaneous refactoring Alex Elder
2012-07-26 19:08 ` [PATCH 1/7] rbd: have __rbd_add_snap_dev() return a pointer Alex Elder
2012-07-30 20:42 ` Josh Durgin
2012-07-26 19:08 ` [PATCH 2/7] rbd: make rbd_create_rw_ops() " Alex Elder
2012-07-30 20:46 ` Josh Durgin
2012-07-26 19:08 ` [PATCH 3/7] rbd: pass null version pointer in add_snap() Alex Elder
2012-07-30 20:48 ` Josh Durgin [this message]
2012-07-26 19:08 ` [PATCH 4/7] rbd: always pass ops array to rbd_req_sync_op() Alex Elder
2012-07-30 20:51 ` Josh Durgin
2012-07-26 19:08 ` [PATCH 5/7] rbd: fixes in rbd_header_from_disk() Alex Elder
2012-07-30 21:23 ` Josh Durgin
2012-07-30 22:45 ` Alex Elder
2012-07-26 19:09 ` [PATCH 6/7] rbd: return obj version in __rbd_refresh_header() Alex Elder
2012-07-30 21:32 ` Josh Durgin
2012-07-26 19:09 ` [PATCH 7/7] rbd: create rbd_refresh_header() Alex Elder
2012-07-30 21:33 ` Josh Durgin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5016F326.8050107@inktank.com \
--to=josh.durgin@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=elder@inktank.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.