[Drbd-dev] [PATCH 001/118] drbd: Get rid of req_validator_fn typedef
Philipp Reisner
philipp.reisner at linbit.com
Thu Aug 25 17:06:57 CEST 2011
From: Andreas Gruenbacher <agruen at linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner at linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg at linbit.com>
---
drivers/block/drbd/drbd_receiver.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index 43beaca..d499aa6 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -4270,11 +4270,9 @@ static struct drbd_request *_ack_id_to_req(struct drbd_conf *mdev,
return NULL;
}
-typedef struct drbd_request *(req_validator_fn)
- (struct drbd_conf *mdev, u64 id, sector_t sector);
-
static int validate_req_change_req_state(struct drbd_conf *mdev,
- u64 id, sector_t sector, req_validator_fn validator,
+ u64 id, sector_t sector,
+ struct drbd_request *(*validator)(struct drbd_conf *, u64, sector_t),
const char *func, enum drbd_req_event what)
{
struct drbd_request *req;
--
1.7.4.1
More information about the drbd-dev
mailing list