diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2014-08-08 17:48:00 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-11-25 17:22:00 +0100 |
commit | 2e9ffde6f0a6bbbd2975e0ec50578a5abae5a5a5 (patch) | |
tree | 74d2fbb304dd5b5e7903fbc2cb9eb495ff358b6c /drivers/block/drbd/drbd_req.h | |
parent | drbd: Remove pointless check (diff) | |
download | linux-2e9ffde6f0a6bbbd2975e0ec50578a5abae5a5a5.tar.xz linux-2e9ffde6f0a6bbbd2975e0ec50578a5abae5a5a5.zip |
drbd: De-inline drbd_should_do_remote() and drbd_should_send_out_of_sync()
There is no need to have these two as inline functions. In addition,
drbd_should_send_out_of_sync() is only used in a single place, anyway.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/drbd/drbd_req.h')
-rw-r--r-- | drivers/block/drbd/drbd_req.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/block/drbd/drbd_req.h b/drivers/block/drbd/drbd_req.h index 9f6a04080e9f..bb2ef78165e5 100644 --- a/drivers/block/drbd/drbd_req.h +++ b/drivers/block/drbd/drbd_req.h @@ -331,21 +331,6 @@ static inline int req_mod(struct drbd_request *req, return rv; } -static inline bool drbd_should_do_remote(union drbd_dev_state s) -{ - return s.pdsk == D_UP_TO_DATE || - (s.pdsk >= D_INCONSISTENT && - s.conn >= C_WF_BITMAP_T && - s.conn < C_AHEAD); - /* Before proto 96 that was >= CONNECTED instead of >= C_WF_BITMAP_T. - That is equivalent since before 96 IO was frozen in the C_WF_BITMAP* - states. */ -} -static inline bool drbd_should_send_out_of_sync(union drbd_dev_state s) -{ - return s.conn == C_AHEAD || s.conn == C_WF_BITMAP_S; - /* pdsk = D_INCONSISTENT as a consequence. Protocol 96 check not necessary - since we enter state C_AHEAD only if proto >= 96 */ -} +extern bool drbd_should_do_remote(union drbd_dev_state); #endif |