Am 14.10.2019 um 13:22 hat Alberto Garcia geschrieben: > On Mon 14 Oct 2019 11:26:01 AM CEST, Kevin Wolf wrote: > >> Signed-off-by: Alberto Garcia <[email protected]> > > > > Thanks, applied to the block branch. > > I'm a bit late now, but a possible trivial optimization is to flip the > conditions, because checking the flag should be faster than checking the > alignment and it's going to be false in almost all cases: > > if ((flags & BDRV_REQ_NO_FALLBACK) && > !QEMU_IS_ALIGNED(offset | bytes, align)) { > return -ENOTSUP; > } > > Feel free to edit the commit if you want.
Ok, I'll update it. Kevin
