]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drbd: Get rid of req_validator_fn typedef
authorAndreas Gruenbacher <agruen@linbit.com>
Sun, 9 Jan 2011 16:52:09 +0000 (17:52 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 25 Aug 2011 12:57:31 +0000 (14:57 +0200)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_receiver.c

index 43beaca53179846f591fc940bb7108a6cc494e3c..d499aa6b7ac0d1bf6c4f0ddffd0ce0300d08a168 100644 (file)
@@ -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;