diff options
author | 2020-11-13 20:51:40 +0800 | |
---|---|---|
committer | 2020-12-08 15:54:13 +0100 | |
commit | f97e27e91d90243e1144030ea1dcbf4154872944 (patch) | |
tree | ed47dba1138dba4c052d9258352de38d62b8dc4d /fs/btrfs/extent_io.h | |
parent | btrfs: introduce helper to handle page status update in end_bio_extent_readpa... (diff) | |
download | linux-f97e27e91d90243e1144030ea1dcbf4154872944.tar.gz linux-f97e27e91d90243e1144030ea1dcbf4154872944.tar.bz2 linux-f97e27e91d90243e1144030ea1dcbf4154872944.zip |
btrfs: use fixed width int type for extent_state::state
Currently the type is unsigned int which could change its width
depending on the architecture. We need up to 32 bits so make it
explicit.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index cf95e9e4acb9..66762c3cdf81 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -255,8 +255,7 @@ void extent_range_clear_dirty_for_io(struct inode *inode, u64 start, u64 end); void extent_range_redirty_for_io(struct inode *inode, u64 start, u64 end); void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end, struct page *locked_page, - unsigned bits_to_clear, - unsigned long page_ops); + u32 bits_to_clear, unsigned long page_ops); struct bio *btrfs_bio_alloc(u64 first_byte); struct bio *btrfs_io_bio_alloc(unsigned int nr_iovecs); struct bio *btrfs_bio_clone(struct bio *bio); |