diff options
Diffstat (limited to 'fs/ext4/mballoc.h')
-rw-r--r-- | fs/ext4/mballoc.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h index 10a2921baf14..dd9e6cd5f6cf 100644 --- a/fs/ext4/mballoc.h +++ b/fs/ext4/mballoc.h | |||
@@ -132,12 +132,15 @@ struct ext4_prealloc_space { | |||
132 | ext4_lblk_t pa_lstart; /* log. block */ | 132 | ext4_lblk_t pa_lstart; /* log. block */ |
133 | unsigned short pa_len; /* len of preallocated chunk */ | 133 | unsigned short pa_len; /* len of preallocated chunk */ |
134 | unsigned short pa_free; /* how many blocks are free */ | 134 | unsigned short pa_free; /* how many blocks are free */ |
135 | unsigned short pa_linear; /* consumed in one direction | 135 | unsigned short pa_type; /* pa type. inode or group */ |
136 | * strictly, for grp prealloc */ | ||
137 | spinlock_t *pa_obj_lock; | 136 | spinlock_t *pa_obj_lock; |
138 | struct inode *pa_inode; /* hack, for history only */ | 137 | struct inode *pa_inode; /* hack, for history only */ |
139 | }; | 138 | }; |
140 | 139 | ||
140 | enum { | ||
141 | MB_INODE_PA = 0, | ||
142 | MB_GROUP_PA = 1 | ||
143 | }; | ||
141 | 144 | ||
142 | struct ext4_free_extent { | 145 | struct ext4_free_extent { |
143 | ext4_lblk_t fe_logical; | 146 | ext4_lblk_t fe_logical; |
@@ -247,7 +250,6 @@ static inline void ext4_mb_store_history(struct ext4_allocation_context *ac) | |||
247 | 250 | ||
248 | #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) | 251 | #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) |
249 | 252 | ||
250 | struct buffer_head *read_block_bitmap(struct super_block *, ext4_group_t); | ||
251 | static inline ext4_fsblk_t ext4_grp_offs_to_block(struct super_block *sb, | 253 | static inline ext4_fsblk_t ext4_grp_offs_to_block(struct super_block *sb, |
252 | struct ext4_free_extent *fex) | 254 | struct ext4_free_extent *fex) |
253 | { | 255 | { |