forked from Minki/linux
drbd: rename drbd_free_bc() to drbd_free_ldev()
Since the member of drbd_device is called ldev Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
8fe39aac05
commit
28995af5cf
@ -950,7 +950,7 @@ extern int drbd_send_ov_request(struct drbd_peer_device *, sector_t sector, int
|
|||||||
extern int drbd_send_bitmap(struct drbd_device *device);
|
extern int drbd_send_bitmap(struct drbd_device *device);
|
||||||
extern void drbd_send_sr_reply(struct drbd_peer_device *, enum drbd_state_rv retcode);
|
extern void drbd_send_sr_reply(struct drbd_peer_device *, enum drbd_state_rv retcode);
|
||||||
extern void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode);
|
extern void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode);
|
||||||
extern void drbd_free_bc(struct drbd_backing_dev *ldev);
|
extern void drbd_free_ldev(struct drbd_backing_dev *ldev);
|
||||||
extern void drbd_device_cleanup(struct drbd_device *device);
|
extern void drbd_device_cleanup(struct drbd_device *device);
|
||||||
void drbd_print_uuids(struct drbd_device *device, const char *text);
|
void drbd_print_uuids(struct drbd_device *device, const char *text);
|
||||||
|
|
||||||
|
@ -1992,7 +1992,7 @@ void drbd_device_cleanup(struct drbd_device *device)
|
|||||||
drbd_bm_cleanup(device);
|
drbd_bm_cleanup(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
drbd_free_bc(device->ldev);
|
drbd_free_ldev(device->ldev);
|
||||||
device->ldev = NULL;
|
device->ldev = NULL;
|
||||||
|
|
||||||
clear_bit(AL_SUSPENDED, &device->flags);
|
clear_bit(AL_SUSPENDED, &device->flags);
|
||||||
@ -2187,7 +2187,7 @@ void drbd_destroy_device(struct kref *kref)
|
|||||||
if (device->this_bdev)
|
if (device->this_bdev)
|
||||||
bdput(device->this_bdev);
|
bdput(device->this_bdev);
|
||||||
|
|
||||||
drbd_free_bc(device->ldev);
|
drbd_free_ldev(device->ldev);
|
||||||
device->ldev = NULL;
|
device->ldev = NULL;
|
||||||
|
|
||||||
drbd_release_all_peer_reqs(device);
|
drbd_release_all_peer_reqs(device);
|
||||||
@ -2960,7 +2960,7 @@ fail:
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
void drbd_free_bc(struct drbd_backing_dev *ldev)
|
void drbd_free_ldev(struct drbd_backing_dev *ldev)
|
||||||
{
|
{
|
||||||
if (ldev == NULL)
|
if (ldev == NULL)
|
||||||
return;
|
return;
|
||||||
@ -3533,7 +3533,7 @@ void drbd_ldev_destroy(struct drbd_device *device)
|
|||||||
lc_destroy(device->act_log);
|
lc_destroy(device->act_log);
|
||||||
device->act_log = NULL;
|
device->act_log = NULL;
|
||||||
__no_warn(local,
|
__no_warn(local,
|
||||||
drbd_free_bc(device->ldev);
|
drbd_free_ldev(device->ldev);
|
||||||
device->ldev = NULL;);
|
device->ldev = NULL;);
|
||||||
|
|
||||||
clear_bit(GO_DISKLESS, &device->flags);
|
clear_bit(GO_DISKLESS, &device->flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user