diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
| -rw-r--r-- | fs/btrfs/ctree.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 378b5b4443f3..3b859a3e6a0e 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
| @@ -19,7 +19,6 @@ | |||
| 19 | #ifndef __BTRFS_CTREE__ | 19 | #ifndef __BTRFS_CTREE__ |
| 20 | #define __BTRFS_CTREE__ | 20 | #define __BTRFS_CTREE__ |
| 21 | 21 | ||
| 22 | #include <linux/version.h> | ||
| 23 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
| 24 | #include <linux/highmem.h> | 23 | #include <linux/highmem.h> |
| 25 | #include <linux/fs.h> | 24 | #include <linux/fs.h> |
| @@ -967,6 +966,12 @@ struct btrfs_fs_info { | |||
| 967 | struct srcu_struct subvol_srcu; | 966 | struct srcu_struct subvol_srcu; |
| 968 | 967 | ||
| 969 | spinlock_t trans_lock; | 968 | spinlock_t trans_lock; |
| 969 | /* | ||
| 970 | * the reloc mutex goes with the trans lock, it is taken | ||
| 971 | * during commit to protect us from the relocation code | ||
| 972 | */ | ||
| 973 | struct mutex reloc_mutex; | ||
| 974 | |||
| 970 | struct list_head trans_list; | 975 | struct list_head trans_list; |
| 971 | struct list_head hashers; | 976 | struct list_head hashers; |
| 972 | struct list_head dead_roots; | 977 | struct list_head dead_roots; |
| @@ -1172,6 +1177,14 @@ struct btrfs_root { | |||
| 1172 | u32 type; | 1177 | u32 type; |
| 1173 | 1178 | ||
| 1174 | u64 highest_objectid; | 1179 | u64 highest_objectid; |
| 1180 | |||
| 1181 | /* btrfs_record_root_in_trans is a multi-step process, | ||
| 1182 | * and it can race with the balancing code. But the | ||
| 1183 | * race is very small, and only the first time the root | ||
| 1184 | * is added to each transaction. So in_trans_setup | ||
| 1185 | * is used to tell us when more checks are required | ||
| 1186 | */ | ||
| 1187 | unsigned long in_trans_setup; | ||
| 1175 | int ref_cows; | 1188 | int ref_cows; |
| 1176 | int track_dirty; | 1189 | int track_dirty; |
| 1177 | int in_radix; | 1190 | int in_radix; |
| @@ -1181,7 +1194,6 @@ struct btrfs_root { | |||
| 1181 | struct btrfs_key defrag_max; | 1194 | struct btrfs_key defrag_max; |
| 1182 | int defrag_running; | 1195 | int defrag_running; |
| 1183 | char *name; | 1196 | char *name; |
| 1184 | int in_sysfs; | ||
| 1185 | 1197 | ||
| 1186 | /* the dirty list is only used by non-reference counted roots */ | 1198 | /* the dirty list is only used by non-reference counted roots */ |
| 1187 | struct list_head dirty_list; | 1199 | struct list_head dirty_list; |
| @@ -1323,6 +1335,11 @@ struct btrfs_ioctl_defrag_range_args { | |||
| 1323 | */ | 1335 | */ |
| 1324 | #define BTRFS_STRING_ITEM_KEY 253 | 1336 | #define BTRFS_STRING_ITEM_KEY 253 |
| 1325 | 1337 | ||
| 1338 | /* | ||
| 1339 | * Flags for mount options. | ||
| 1340 | * | ||
| 1341 | * Note: don't forget to add new options to btrfs_show_options() | ||
| 1342 | */ | ||
| 1326 | #define BTRFS_MOUNT_NODATASUM (1 << 0) | 1343 | #define BTRFS_MOUNT_NODATASUM (1 << 0) |
| 1327 | #define BTRFS_MOUNT_NODATACOW (1 << 1) | 1344 | #define BTRFS_MOUNT_NODATACOW (1 << 1) |
| 1328 | #define BTRFS_MOUNT_NOBARRIER (1 << 2) | 1345 | #define BTRFS_MOUNT_NOBARRIER (1 << 2) |
