aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r--drivers/block/drbd/drbd_int.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index 22adfc7189de..eddc4388a1b1 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -971,6 +971,7 @@ struct drbd_conf {
971 971
972 /* where does the admin want us to start? (sector) */ 972 /* where does the admin want us to start? (sector) */
973 sector_t ov_start_sector; 973 sector_t ov_start_sector;
974 sector_t ov_stop_sector;
974 /* where are we now? (sector) */ 975 /* where are we now? (sector) */
975 sector_t ov_position; 976 sector_t ov_position;
976 /* Start sector of out of sync range (to merge printk reporting). */ 977 /* Start sector of out of sync range (to merge printk reporting). */
@@ -2264,6 +2265,12 @@ static inline void dec_ap_bio(struct drbd_conf *mdev)
2264 wake_up(&mdev->misc_wait); 2265 wake_up(&mdev->misc_wait);
2265} 2266}
2266 2267
2268static inline bool verify_can_do_stop_sector(struct drbd_conf *mdev)
2269{
2270 return mdev->tconn->agreed_pro_version >= 97 &&
2271 mdev->tconn->agreed_pro_version != 100;
2272}
2273
2267static inline int drbd_set_ed_uuid(struct drbd_conf *mdev, u64 val) 2274static inline int drbd_set_ed_uuid(struct drbd_conf *mdev, u64 val)
2268{ 2275{
2269 int changed = mdev->ed_uuid != val; 2276 int changed = mdev->ed_uuid != val;