REQ_OP_FLUSH was being treated as a flag, but the operation
part of bio->bi_opf must be treated as a whole. Change to
accessing the operation part via bio_op(bio) and checking
for equality.
Signed-off-by: John Dorminy <[email protected]>
Acked-by: Heinz Mauelshagen <[email protected]>
Fixes: d3c7b35c20 ("dm: add emulated block size target")
Cc: [email protected]
Signed-off-by: Mike Snitzer <[email protected]>
Use dm_bufio_forget_buffers instead of a block-by-block loop that
calls dm_bufio_forget. dm_bufio_forget_buffers is faster than the loop
because it searches for used buffers using rb-tree.
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Make use of dm_bufio_issue_discard() to pass discards down to the
underlying device.
Signed-off-by: Heinz Mauelshagen <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
This new target is similar to the linear target except that it emulates
a smaller logical block size on a device with a larger logical block
size. Its main purpose is to emulate 512 byte sectors on 4K native
disks (i.e. 512e).
See Documentation/admin-guide/device-mapper/dm-ebs.rst for details.
Reviewed-by: Damien Le Moal <[email protected]>
Signed-off-by: Heinz Mauelshagen <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]> [Kconfig fixes]
Signed-off-by: Zheng Bin <[email protected]> [static fixes]
Signed-off-by: Mike Snitzer <[email protected]>