[PATCH 2/2] Btrfs-progs: use bitfield instead of integer for some variants in fs_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Wang Shilong <wangsl.fnst@xxxxxxxxxxxxxx>
---
 ctree.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ctree.h b/ctree.h
index 3cc3477..9b461af 100644
--- 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,
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux