drbd: Remove an unused field in struct drbd_device
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 25 Aug 2024 16:22:23 +0000 (18:22 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Aug 2024 13:15:53 +0000 (07:15 -0600)
'next_barrier_nr' is not used in this driver. Remove it.

It was already part of the original commit b411b3637fa7 ("The DRBD driver")
Apparently, it has never been used.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/d5322ef88d1d6f544963ee277cb0b427da8dceef.1724602922.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_int.h

index d2937bca1fe4380794fd9b3308fc0affafa6132d..2a05d955e30b67c70bf8bb102f0951411137b308 100644 (file)
@@ -860,7 +860,6 @@ struct drbd_device {
        struct list_head read_ee;   /* [RS]P_DATA_REQUEST being read */
        struct list_head net_ee;    /* zero-copy network send in progress */
 
-       int next_barrier_nr;
        struct list_head resync_reads;
        atomic_t pp_in_use;             /* allocated from page pool */
        atomic_t pp_in_use_by_net;      /* sendpage()d, still referenced by tcp */