diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2014-09-11 14:29:05 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-11 16:41:29 +0200 |
commit | 11f8b2b69d32d43a6d9b45c60c1fee48ab91f440 (patch) | |
tree | 8a1e1f1a1e09f452eb7dd54d896e9fd7a4b1e885 /drivers/block/drbd/drbd_int.h | |
parent | bdi: reimplement bdev_inode_switch_bdi() (diff) | |
download | linux-11f8b2b69d32d43a6d9b45c60c1fee48ab91f440.tar.xz linux-11f8b2b69d32d43a6d9b45c60c1fee48ab91f440.zip |
drbd: Use better variable names
Rename local variable 'ds' to 'disk_state' or 'data_size'.
'dgs' to 'digest_size'
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_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 1a000016ccdf..9e1288e4148c 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h @@ -2109,7 +2109,7 @@ static inline bool is_sync_state(enum drbd_conns connection_state) static inline void put_ldev(struct drbd_device *device) { - enum drbd_disk_state ds = device->state.disk; + enum drbd_disk_state disk_state = device->state.disk; /* We must check the state *before* the atomic_dec becomes visible, * or we have a theoretical race where someone hitting zero, * while state still D_FAILED, will then see D_DISKLESS in the @@ -2122,10 +2122,10 @@ static inline void put_ldev(struct drbd_device *device) __release(local); D_ASSERT(device, i >= 0); if (i == 0) { - if (ds == D_DISKLESS) + if (disk_state == D_DISKLESS) /* even internal references gone, safe to destroy */ drbd_device_post_work(device, DESTROY_DISK); - if (ds == D_FAILED) + if (disk_state == D_FAILED) /* all application IO references gone. */ if (!test_and_set_bit(GOING_DISKLESS, &device->flags)) drbd_device_post_work(device, GO_DISKLESS); |