Re: [PATCH] btrfs: don't abuse REQ_OP_* flags for btrfs_map_block

2016-10-28 Thread David Sterba
On Thu, Oct 27, 2016 at 09:27:36AM +0200, Christoph Hellwig wrote: > 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.

[PATCH] btrfs: don't abuse REQ_OP_* flags for btrfs_map_block

2016-10-27 Thread Christoph Hellwig
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