diff options
author | Christoph Hellwig <hch@lst.de> | 2016-10-28 08:48:16 -0600 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 130a02bce60ed0addd05d1ed9a4c9eb72683a5d2 (patch) | |
tree | b682704b3e513be5f9cd86198beebbc52862ac21 /Documentation/memory-devices | |
parent | 584d17b95953aaf5754d152ca8a203abef922ec3 (diff) |
block: better op and flags encoding
Now that we don't need the common flags to overflow outside the range
of a 32-bit type we can encode them the same way for both the bio and
request fields. This in addition allows us to place the operation
first (and make some room for more ops while we're at it) and to
stop having to shift around the operation values.
In addition this allows passing around only one value in the block layer
instead of two (and eventuall also in the file systems, but we can do
that later) and thus clean up a lot of code.
Last but not least this allows decreasing the size of the cmd_flags
field in struct request to 32-bits. Various functions passing this
value could also be updated, but I'd like to avoid the churn for now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit ef295ecf090d3e86e5b742fc6ab34f1122a43773)
Conflicts:
block/blk-mq.c
include/linux/blk_types.h
include/linux/blkdev.h
Diffstat (limited to 'Documentation/memory-devices')
0 files changed, 0 insertions, 0 deletions