diff options
author | David Sterba <dsterba@suse.cz> | 2013-04-29 09:38:46 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 15:55:27 -0400 |
commit | 410748882ac703aa0550aa6c3c5656edd0462001 (patch) | |
tree | 8f5d6a53ad6d19af08f6991a6ee702269e28dbd0 /fs/btrfs/extent_io.h | |
parent | 625f1c8dc66d77878e1a563d6dd5722404968fbf (diff) |
btrfs: use unsigned long type for extent state bits
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 3af58bf55ddc..a2c03a175009 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -81,9 +81,9 @@ struct extent_io_ops { | |||
81 | int (*writepage_end_io_hook)(struct page *page, u64 start, u64 end, | 81 | int (*writepage_end_io_hook)(struct page *page, u64 start, u64 end, |
82 | struct extent_state *state, int uptodate); | 82 | struct extent_state *state, int uptodate); |
83 | void (*set_bit_hook)(struct inode *inode, struct extent_state *state, | 83 | void (*set_bit_hook)(struct inode *inode, struct extent_state *state, |
84 | int *bits); | 84 | unsigned long *bits); |
85 | void (*clear_bit_hook)(struct inode *inode, struct extent_state *state, | 85 | void (*clear_bit_hook)(struct inode *inode, struct extent_state *state, |
86 | int *bits); | 86 | unsigned long *bits); |
87 | void (*merge_extent_hook)(struct inode *inode, | 87 | void (*merge_extent_hook)(struct inode *inode, |
88 | struct extent_state *new, | 88 | struct extent_state *new, |
89 | struct extent_state *other); | 89 | struct extent_state *other); |
@@ -192,7 +192,7 @@ int try_release_extent_mapping(struct extent_map_tree *map, | |||
192 | int try_release_extent_buffer(struct page *page); | 192 | int try_release_extent_buffer(struct page *page); |
193 | int lock_extent(struct extent_io_tree *tree, u64 start, u64 end); | 193 | int lock_extent(struct extent_io_tree *tree, u64 start, u64 end); |
194 | int lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, | 194 | int lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, |
195 | int bits, struct extent_state **cached); | 195 | unsigned long bits, struct extent_state **cached); |
196 | int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end); | 196 | int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end); |
197 | int unlock_extent_cached(struct extent_io_tree *tree, u64 start, u64 end, | 197 | int unlock_extent_cached(struct extent_io_tree *tree, u64 start, u64 end, |
198 | struct extent_state **cached, gfp_t mask); | 198 | struct extent_state **cached, gfp_t mask); |
@@ -208,16 +208,17 @@ u64 count_range_bits(struct extent_io_tree *tree, | |||
208 | 208 | ||
209 | void free_extent_state(struct extent_state *state); | 209 | void free_extent_state(struct extent_state *state); |
210 | int test_range_bit(struct extent_io_tree *tree, u64 start, u64 end, | 210 | int test_range_bit(struct extent_io_tree *tree, u64 start, u64 end, |
211 | int bits, int filled, struct extent_state *cached_state); | 211 | unsigned long bits, int filled, |
212 | struct extent_state *cached_state); | ||
212 | int clear_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, | 213 | int clear_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, |
213 | int bits, gfp_t mask); | 214 | unsigned long bits, gfp_t mask); |
214 | int clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, | 215 | int clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, |
215 | int bits, int wake, int delete, struct extent_state **cached, | 216 | unsigned long bits, int wake, int delete, |
216 | gfp_t mask); | 217 | struct extent_state **cached, gfp_t mask); |
217 | int set_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, | 218 | int set_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, |
218 | int bits, gfp_t mask); | 219 | unsigned long bits, gfp_t mask); |
219 | int set_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, | 220 | int set_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, |
220 | int bits, u64 *failed_start, | 221 | unsigned long bits, u64 *failed_start, |
221 | struct extent_state **cached_state, gfp_t mask); | 222 | struct extent_state **cached_state, gfp_t mask); |
222 | int set_extent_uptodate(struct extent_io_tree *tree, u64 start, u64 end, | 223 | int set_extent_uptodate(struct extent_io_tree *tree, u64 start, u64 end, |
223 | struct extent_state **cached_state, gfp_t mask); | 224 | struct extent_state **cached_state, gfp_t mask); |
@@ -230,14 +231,14 @@ int set_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end, | |||
230 | int clear_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end, | 231 | int clear_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end, |
231 | gfp_t mask); | 232 | gfp_t mask); |
232 | int convert_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, | 233 | int convert_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, |
233 | int bits, int clear_bits, | 234 | unsigned long bits, unsigned long clear_bits, |
234 | struct extent_state **cached_state, gfp_t mask); | 235 | struct extent_state **cached_state, gfp_t mask); |
235 | int set_extent_delalloc(struct extent_io_tree *tree, u64 start, u64 end, | 236 | int set_extent_delalloc(struct extent_io_tree *tree, u64 start, u64 end, |
236 | struct extent_state **cached_state, gfp_t mask); | 237 | struct extent_state **cached_state, gfp_t mask); |
237 | int set_extent_defrag(struct extent_io_tree *tree, u64 start, u64 end, | 238 | int set_extent_defrag(struct extent_io_tree *tree, u64 start, u64 end, |
238 | struct extent_state **cached_state, gfp_t mask); | 239 | struct extent_state **cached_state, gfp_t mask); |
239 | int find_first_extent_bit(struct extent_io_tree *tree, u64 start, | 240 | int find_first_extent_bit(struct extent_io_tree *tree, u64 start, |
240 | u64 *start_ret, u64 *end_ret, int bits, | 241 | u64 *start_ret, u64 *end_ret, unsigned long bits, |
241 | struct extent_state **cached_state); | 242 | struct extent_state **cached_state); |
242 | int extent_invalidatepage(struct extent_io_tree *tree, | 243 | int extent_invalidatepage(struct extent_io_tree *tree, |
243 | struct page *page, unsigned long offset); | 244 | struct page *page, unsigned long offset); |