On Wed, Nov 22, 2023 at 08:43:48AM +0800, Ming Lei wrote: > > And you can open-code it in bio_integrity_unmap_user(): > > for (i = 0; i < bip->bip_vcnt; i++) { > struct bio_vec *v = &bip->bip_vec[i]; > > ... > } That works for me. io_uring/rsrc.c does similar too, which I referenced when implementing this. I thought the macro might help make this optimisation more reachable for future use, but I don't need to introduce that with only the one user here.