Skip to content

Commit b38b17b

Browse files
lxbszidryomov
authored andcommitted
ceph: move mount state enum to super.h
These flags are only used in ceph filesystem in fs/ceph, so just move it to the place it should be. Signed-off-by: Xiubo Li <[email protected]> Reviewed-by: Venky Shankar <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 6d796c5 commit b38b17b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

fs/ceph/super.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ struct ceph_mount_options {
100100
char *mon_addr;
101101
};
102102

103+
/* mount state */
104+
enum {
105+
CEPH_MOUNT_MOUNTING,
106+
CEPH_MOUNT_MOUNTED,
107+
CEPH_MOUNT_UNMOUNTING,
108+
CEPH_MOUNT_UNMOUNTED,
109+
CEPH_MOUNT_SHUTDOWN,
110+
CEPH_MOUNT_RECOVER,
111+
};
112+
103113
#define CEPH_ASYNC_CREATE_CONFLICT_BITS 8
104114

105115
struct ceph_fs_client {

include/linux/ceph/libceph.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@ struct ceph_options {
9999

100100
#define CEPH_AUTH_NAME_DEFAULT "guest"
101101

102-
/* mount state */
103-
enum {
104-
CEPH_MOUNT_MOUNTING,
105-
CEPH_MOUNT_MOUNTED,
106-
CEPH_MOUNT_UNMOUNTING,
107-
CEPH_MOUNT_UNMOUNTED,
108-
CEPH_MOUNT_SHUTDOWN,
109-
CEPH_MOUNT_RECOVER,
110-
};
111-
112102
static inline unsigned long ceph_timeout_jiffies(unsigned long timeout)
113103
{
114104
return timeout ?: MAX_SCHEDULE_TIMEOUT;

0 commit comments

Comments
 (0)