ceph: move mount state enum to super.h
authorXiubo Li <xiubli@redhat.com>
Wed, 1 Feb 2023 01:36:44 +0000 (09:36 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Feb 2023 12:40:23 +0000 (13:40 +0100)
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 <xiubli@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/super.h
include/linux/ceph/libceph.h

index 0ed3be7..cd95b42 100644 (file)
@@ -100,6 +100,16 @@ struct ceph_mount_options {
        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
 
 struct ceph_fs_client {
index 00af2c9..4497d0a 100644 (file)
@@ -99,16 +99,6 @@ struct ceph_options {
 
 #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)
 {
        return timeout ?: MAX_SCHEDULE_TIMEOUT;