diff options
author | Christoph Hellwig <hch@lst.de> | 2016-10-27 09:27:36 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-29 14:10:38 +0100 |
commit | cf8cddd38bab31b284af8d51fee536be9914f6ef (patch) | |
tree | a5b6b272c219bf07f06b82a314f26c7a51c29b8b /fs/btrfs/extent_io.c | |
parent | Linux 4.9-rc7 (diff) | |
download | linux-cf8cddd38bab31b284af8d51fee536be9914f6ef.tar.xz linux-cf8cddd38bab31b284af8d51fee536be9914f6ef.zip |
btrfs: don't abuse REQ_OP_* flags for btrfs_map_block
btrfs_map_block supports different types of mappings, which to a large
extent resemble block layer operations. But they don't always do, and
currently btrfs dangerously overlays it's own flag over the block layer
flags. This is just asking for a conflict, so introduce a different
map flags enum inside of btrfs instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 8ed05d95584a..ea9ade703da2 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2029,7 +2029,7 @@ int repair_io_failure(struct inode *inode, u64 start, u64 length, u64 logical, * read repair operation. */ btrfs_bio_counter_inc_blocked(fs_info); - ret = btrfs_map_block(fs_info, WRITE, logical, + ret = btrfs_map_block(fs_info, BTRFS_MAP_WRITE, logical, &map_length, &bbio, mirror_num); if (ret) { btrfs_bio_counter_dec(fs_info); |