io_uring: add wrappers for memory accounting
authorBijan Mottahedeh <bijan.mottahedeh@oracle.com>
Tue, 16 Jun 2020 23:36:07 +0000 (16:36 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Jun 2020 21:06:05 +0000 (15:06 -0600)
commit8857cb72f9c3280e003d503fea6f310501e92cd2
tree3f27ff2f809a1bda50f37aacbe95069e9e835521
parentb464a0e388f16857dd40f70bf9c7c74e06966bff
io_uring: add wrappers for memory accounting

Facilitate separation of locked memory usage reporting vs. limiting for
upcoming patches.  No functional changes.

Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
[axboe: kill unnecessary () around return in io_account_mem()]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c