ceph: make fsc->mount_state an int
authorJeff Layton <jlayton@kernel.org>
Tue, 6 Oct 2020 12:38:20 +0000 (08:38 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 14 Dec 2020 22:21:46 +0000 (23:21 +0100)
This field is an unsigned long currently, which is a bit of a waste on
most arches since this just holds an enum. Make it (signed) int instead.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/super.h

index 482473e..f9e35e8 100644 (file)
@@ -106,7 +106,7 @@ struct ceph_fs_client {
        struct ceph_mount_options *mount_options;
        struct ceph_client *client;
 
-       unsigned long mount_state;
+       int mount_state;
 
        unsigned long last_auto_reconnect;
        bool blocklisted;