]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: don't abuse REQ_OP_* flags for btrfs_map_block
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Oct 2016 07:27:36 +0000 (09:27 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 29 Nov 2016 13:10:38 +0000 (14:10 +0100)
commitcf8cddd38bab31b284af8d51fee536be9914f6ef
treea5b6b272c219bf07f06b82a314f26c7a51c29b8b
parente5517c2a5a49ed5e99047008629f1cd60246ea0e
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>
fs/btrfs/check-integrity.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/reada.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h