提交 b38b17b6 编写于 作者: X Xiubo Li 提交者: Ilya Dryomov

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: NXiubo Li <xiubli@redhat.com>
Reviewed-by: NVenky Shankar <vshankar@redhat.com>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 6d796c50
...@@ -100,6 +100,16 @@ struct ceph_mount_options { ...@@ -100,6 +100,16 @@ struct ceph_mount_options {
char *mon_addr; char *mon_addr;
}; };
/* mount state */
enum {
CEPH_MOUNT_MOUNTING,
CEPH_MOUNT_MOUNTED,
CEPH_MOUNT_UNMOUNTING,
CEPH_MOUNT_UNMOUNTED,
CEPH_MOUNT_SHUTDOWN,
CEPH_MOUNT_RECOVER,
};
#define CEPH_ASYNC_CREATE_CONFLICT_BITS 8 #define CEPH_ASYNC_CREATE_CONFLICT_BITS 8
struct ceph_fs_client { struct ceph_fs_client {
......
...@@ -99,16 +99,6 @@ struct ceph_options { ...@@ -99,16 +99,6 @@ struct ceph_options {
#define CEPH_AUTH_NAME_DEFAULT "guest" #define CEPH_AUTH_NAME_DEFAULT "guest"
/* mount state */
enum {
CEPH_MOUNT_MOUNTING,
CEPH_MOUNT_MOUNTED,
CEPH_MOUNT_UNMOUNTING,
CEPH_MOUNT_UNMOUNTED,
CEPH_MOUNT_SHUTDOWN,
CEPH_MOUNT_RECOVER,
};
static inline unsigned long ceph_timeout_jiffies(unsigned long timeout) static inline unsigned long ceph_timeout_jiffies(unsigned long timeout)
{ {
return timeout ?: MAX_SCHEDULE_TIMEOUT; return timeout ?: MAX_SCHEDULE_TIMEOUT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册