diff options
Diffstat (limited to 'fs/ocfs2/reservations.h')
-rw-r--r-- | fs/ocfs2/reservations.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ocfs2/reservations.h b/fs/ocfs2/reservations.h index 8341cd0ef855..34bb308375c5 100644 --- a/fs/ocfs2/reservations.h +++ b/fs/ocfs2/reservations.h | |||
@@ -42,6 +42,8 @@ struct ocfs2_alloc_reservation { | |||
42 | #define OCFS2_RESV_FLAG_INUSE 0x01 /* Set when r_node is part of a btree */ | 42 | #define OCFS2_RESV_FLAG_INUSE 0x01 /* Set when r_node is part of a btree */ |
43 | #define OCFS2_RESV_FLAG_TMP 0x02 /* Temporary reservation, will be | 43 | #define OCFS2_RESV_FLAG_TMP 0x02 /* Temporary reservation, will be |
44 | * destroyed immedately after use */ | 44 | * destroyed immedately after use */ |
45 | #define OCFS2_RESV_FLAG_DIR 0x04 /* Reservation is for an unindexed | ||
46 | * directory btree */ | ||
45 | 47 | ||
46 | struct ocfs2_reservation_map { | 48 | struct ocfs2_reservation_map { |
47 | struct rb_root m_reservations; | 49 | struct rb_root m_reservations; |
@@ -61,7 +63,7 @@ struct ocfs2_reservation_map { | |||
61 | 63 | ||
62 | void ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv); | 64 | void ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv); |
63 | 65 | ||
64 | #define OCFS2_RESV_TYPES (OCFS2_RESV_FLAG_TMP) | 66 | #define OCFS2_RESV_TYPES (OCFS2_RESV_FLAG_TMP|OCFS2_RESV_FLAG_DIR) |
65 | void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, | 67 | void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, |
66 | unsigned int flags); | 68 | unsigned int flags); |
67 | 69 | ||