diff options
author | David Sterba <dsterba@suse.com> | 2016-02-11 13:24:13 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-18 11:46:03 +0100 |
commit | 47dc196ae719c197b961c09d72d1b5ab90c66dc5 (patch) | |
tree | 80ebed2ed552c93048aa905455bdf5dd923727f6 /fs/btrfs/extent_io.h | |
parent | 04b285f35e2086b69682c7ed054aa35eebea9f72 (diff) | |
download | linux-47dc196ae719c197b961c09d72d1b5ab90c66dc5.tar.gz linux-47dc196ae719c197b961c09d72d1b5ab90c66dc5.tar.bz2 linux-47dc196ae719c197b961c09d72d1b5ab90c66dc5.zip |
btrfs: use proper type for failrec in extent_state
We use the private member of extent_state to store the failrec and play
pointless pointer games.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 0377413bd4b9..98a25a100674 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -62,6 +62,7 @@ struct extent_state; struct btrfs_root; struct btrfs_io_bio; +struct io_failure_record; typedef int (extent_submit_bio_hook_t)(struct inode *inode, int rw, struct bio *bio, int mirror_num, @@ -112,8 +113,7 @@ struct extent_state { atomic_t refs; unsigned state; - /* for use by the FS */ - u64 private; + struct io_failure_record *failrec; #ifdef CONFIG_BTRFS_DEBUG struct list_head leak_list; @@ -345,7 +345,6 @@ int extent_readpages(struct extent_io_tree *tree, get_extent_t get_extent); int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, __u64 start, __u64 len, get_extent_t *get_extent); -int get_state_private(struct extent_io_tree *tree, u64 start, u64 *private); void set_page_extent_mapped(struct page *page); struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, |