io_uring: put provided buffer meta data under memcg accounting

For each provided buffer, we allocate a struct io_buffer to hold the
data associated with it. As a large number of buffers can be provided,
account that data with memcg.

Fixes: ddf0322db79c ("io_uring: add IORING_OP_PROVIDE_BUFFERS")
Signed-off-by: Jens Axboe <axboe@kernel.dk>

+1 -1
+1 -1
fs/io_uring.c
··· 4387 4387 int i, bid = pbuf->bid; 4388 4388 4389 4389 for (i = 0; i < pbuf->nbufs; i++) { 4390 - buf = kmalloc(sizeof(*buf), GFP_KERNEL); 4390 + buf = kmalloc(sizeof(*buf), GFP_KERNEL_ACCOUNT); 4391 4391 if (!buf) 4392 4392 break; 4393 4393