Btrfs-progs: use bitfield instead of integer for some variants in fs_info
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Tue, 25 Feb 2014 11:48:57 +0000 (19:48 +0800)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:29 +0000 (06:23 -0700)
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
ctree.h

diff --git a/ctree.h b/ctree.h
index 3cc3477..9b461af 100644 (file)
--- a/ctree.h
+++ b/ctree.h
@@ -984,9 +984,11 @@ struct btrfs_fs_info {
        struct btrfs_fs_devices *fs_devices;
        struct list_head space_info;
        int system_allocs;
-       int readonly;
-       int on_restoring;
-       int is_chunk_recover;
+
+       unsigned int readonly:1;
+       unsigned int on_restoring:1;
+       unsigned int is_chunk_recover:1;
+
        int (*free_extent_hook)(struct btrfs_trans_handle *trans,
                                struct btrfs_root *root,
                                u64 bytenr, u64 num_bytes, u64 parent,