diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-08-30 10:22:33 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 10:50:46 -0500 |
commit | 81f0ffd2a2fdbd233a8ccebd4ae152da0a1b15f8 (patch) | |
tree | da4832b79a436e2d91248593e559b6aea162bf2e | |
parent | e33b32de04f6c247b9d57621f5bdb48b3c2cadb3 (diff) |
drbd: Remove unused parameter of wire_flags_to_bio()
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 4fa7e0e8c2f5..18c76e84d540 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -2029,7 +2029,7 @@ static int wait_for_and_update_peer_seq(struct drbd_peer_device *peer_device, co | |||
2029 | /* see also bio_flags_to_wire() | 2029 | /* see also bio_flags_to_wire() |
2030 | * DRBD_REQ_*, because we need to semantically map the flags to data packet | 2030 | * DRBD_REQ_*, because we need to semantically map the flags to data packet |
2031 | * flags and back. We may replicate to other kernel versions. */ | 2031 | * flags and back. We may replicate to other kernel versions. */ |
2032 | static unsigned long wire_flags_to_bio(struct drbd_device *device, u32 dpf) | 2032 | static unsigned long wire_flags_to_bio(u32 dpf) |
2033 | { | 2033 | { |
2034 | return (dpf & DP_RW_SYNC ? REQ_SYNC : 0) | | 2034 | return (dpf & DP_RW_SYNC ? REQ_SYNC : 0) | |
2035 | (dpf & DP_FUA ? REQ_FUA : 0) | | 2035 | (dpf & DP_FUA ? REQ_FUA : 0) | |
@@ -2215,7 +2215,7 @@ static int receive_Data(struct drbd_connection *connection, struct packet_info * | |||
2215 | peer_req->w.cb = e_end_block; | 2215 | peer_req->w.cb = e_end_block; |
2216 | 2216 | ||
2217 | dp_flags = be32_to_cpu(p->dp_flags); | 2217 | dp_flags = be32_to_cpu(p->dp_flags); |
2218 | rw |= wire_flags_to_bio(device, dp_flags); | 2218 | rw |= wire_flags_to_bio(dp_flags); |
2219 | if (peer_req->pages == NULL) { | 2219 | if (peer_req->pages == NULL) { |
2220 | D_ASSERT(device, peer_req->i.size == 0); | 2220 | D_ASSERT(device, peer_req->i.size == 0); |
2221 | D_ASSERT(device, dp_flags & DP_FLUSH); | 2221 | D_ASSERT(device, dp_flags & DP_FLUSH); |