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>
This commit is contained in:
parent
4314116bae
commit
41d6c3c265
8
ctree.h
8
ctree.h
|
@ -984,9 +984,11 @@ struct btrfs_fs_info {
|
||||||
struct btrfs_fs_devices *fs_devices;
|
struct btrfs_fs_devices *fs_devices;
|
||||||
struct list_head space_info;
|
struct list_head space_info;
|
||||||
int system_allocs;
|
int system_allocs;
|
||||||
int readonly;
|
|
||||||
int on_restoring;
|
unsigned int readonly:1;
|
||||||
int is_chunk_recover;
|
unsigned int on_restoring:1;
|
||||||
|
unsigned int is_chunk_recover:1;
|
||||||
|
|
||||||
int (*free_extent_hook)(struct btrfs_trans_handle *trans,
|
int (*free_extent_hook)(struct btrfs_trans_handle *trans,
|
||||||
struct btrfs_root *root,
|
struct btrfs_root *root,
|
||||||
u64 bytenr, u64 num_bytes, u64 parent,
|
u64 bytenr, u64 num_bytes, u64 parent,
|
||||||
|
|
Loading…
Reference in New Issue