aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-01-09 11:52:09 -0500
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-08-25 08:57:31 -0400
commit28c455ceb2d9fc276839ebeae68115f850b25c6d (patch)
tree1d1028676328593daa6caea1a62a4e40223d2721 /drivers/block
parente03c8dd14915fabc101aa495828d58598dc5af98 (diff)
drbd: Get rid of req_validator_fn typedef
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/drbd/drbd_receiver.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index 43beaca53179..d499aa6b7ac0 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,
4270 return NULL; 4270 return NULL;
4271} 4271}
4272 4272
4273typedef struct drbd_request *(req_validator_fn)
4274 (struct drbd_conf *mdev, u64 id, sector_t sector);
4275
4276static int validate_req_change_req_state(struct drbd_conf *mdev, 4273static int validate_req_change_req_state(struct drbd_conf *mdev,
4277 u64 id, sector_t sector, req_validator_fn validator, 4274 u64 id, sector_t sector,
4275 struct drbd_request *(*validator)(struct drbd_conf *, u64, sector_t),
4278 const char *func, enum drbd_req_event what) 4276 const char *func, enum drbd_req_event what)
4279{ 4277{
4280 struct drbd_request *req; 4278 struct drbd_request *req;