mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
drbd: Rename enum drbd_state_ret_codes to enum drbd_state_rv
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
116676ca62
commit
c8b325632f
@ -510,8 +510,9 @@ static union drbd_state sanitize_state(struct drbd_conf *mdev, union drbd_state
|
||||
int drbd_send_state_req(struct drbd_conf *,
|
||||
union drbd_state, union drbd_state);
|
||||
|
||||
static enum drbd_state_ret_codes _req_st_cond(struct drbd_conf *mdev,
|
||||
union drbd_state mask, union drbd_state val)
|
||||
static enum drbd_state_rv
|
||||
_req_st_cond(struct drbd_conf *mdev, union drbd_state mask,
|
||||
union drbd_state val)
|
||||
{
|
||||
union drbd_state os, ns;
|
||||
unsigned long flags;
|
||||
|
@ -107,7 +107,7 @@ const char *drbd_disk_str(enum drbd_disk_state s)
|
||||
return s > D_UP_TO_DATE ? "TOO_LARGE" : drbd_disk_s_names[s];
|
||||
}
|
||||
|
||||
const char *drbd_set_st_err_str(enum drbd_state_ret_codes err)
|
||||
const char *drbd_set_st_err_str(enum drbd_state_rv err)
|
||||
{
|
||||
return err <= SS_AFTER_LAST_ERROR ? "TOO_SMALL" :
|
||||
err > SS_TWO_PRIMARIES ? "TOO_LARGE"
|
||||
|
@ -270,7 +270,7 @@ union drbd_state {
|
||||
unsigned int i;
|
||||
};
|
||||
|
||||
enum drbd_state_ret_codes {
|
||||
enum drbd_state_rv {
|
||||
SS_CW_NO_NEED = 4,
|
||||
SS_CW_SUCCESS = 3,
|
||||
SS_NOTHING_TO_DO = 2,
|
||||
@ -301,7 +301,7 @@ enum drbd_state_ret_codes {
|
||||
extern const char *drbd_conn_str(enum drbd_conns);
|
||||
extern const char *drbd_role_str(enum drbd_role);
|
||||
extern const char *drbd_disk_str(enum drbd_disk_state);
|
||||
extern const char *drbd_set_st_err_str(enum drbd_state_ret_codes);
|
||||
extern const char *drbd_set_st_err_str(enum drbd_state_rv);
|
||||
|
||||
#define SHARED_SECRET_MAX 64
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user