Commit ef06f4d3 authored by Alex Elder's avatar Alex Elder

rbd: add parentheses to object request iterator macros

The for_each_obj_request*() macros should parenthesize their uses of
the ireq parameter.
Signed-off-by: default avatarAlex Elder <elder@inktank.com>
Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
parent f44246e3
...@@ -226,11 +226,11 @@ struct rbd_img_request { ...@@ -226,11 +226,11 @@ struct rbd_img_request {
}; };
#define for_each_obj_request(ireq, oreq) \ #define for_each_obj_request(ireq, oreq) \
list_for_each_entry(oreq, &ireq->obj_requests, links) list_for_each_entry(oreq, &(ireq)->obj_requests, links)
#define for_each_obj_request_from(ireq, oreq) \ #define for_each_obj_request_from(ireq, oreq) \
list_for_each_entry_from(oreq, &ireq->obj_requests, links) list_for_each_entry_from(oreq, &(ireq)->obj_requests, links)
#define for_each_obj_request_safe(ireq, oreq, n) \ #define for_each_obj_request_safe(ireq, oreq, n) \
list_for_each_entry_safe_reverse(oreq, n, &ireq->obj_requests, links) list_for_each_entry_safe_reverse(oreq, n, &(ireq)->obj_requests, links)
struct rbd_snap { struct rbd_snap {
struct device dev; struct device dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment