-static int io_sqe_buffers_unregister(struct io_ring_ctx *ctx) +static void io_buffer_unmap(struct io_ring_ctx *ctx, struct io_mapped_ubuf *imu)I think this and some others from here can go into a separate patch, would be cleaner.
I tried to break this up a few ways but it didn't work well because I think most of the code changes depend on the io_uring structure changes. I've left it as is for now but if you have some idea on what you want to do, we can do it next.