diff options
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | 2014-02-25 19:48:57 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-03-21 06:23:29 -0700 |
commit | 41d6c3c265d40fc133894a7aaa4355efb02f75e1 (patch) | |
tree | 7f4ef9947af96910fab933909b474173dc88c1fc /ctree.h | |
parent | 4314116bae30d2e9376b07929e6b0e58cddbd9f7 (diff) | |
download | btrfs-progs-41d6c3c265d40fc133894a7aaa4355efb02f75e1.tar.gz |
Btrfs-progs: use bitfield instead of integer for some variants in fs_info
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>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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, |