[0/2] netfs,erofs: reuse netfs_put_subrequest() and

Message ID 20221021084912.61468-1-jefflexu@linux.alibaba.com
Headers
Series netfs,erofs: reuse netfs_put_subrequest() and |

Message

Jingbo Xu Oct. 21, 2022, 8:49 a.m. UTC
  The data routine of erofs in fscache mode also relies on
netfs_io_request and netfs_io_subrequest.  erofs itself maintains a
copy of some helpers on netfs_io_request and netfs_io_subrequest.

To clean up the code, export netfs_put_subrequest() and
netfs_rreq_completed().


Jingbo Xu (2):
  netfs: export helpers for request and subrequest
  erofs: use netfs helpers manipulating request and subrequest

 fs/erofs/fscache.c    | 47 +++++++++----------------------------------
 fs/netfs/io.c         |  3 ++-
 fs/netfs/objects.c    |  1 +
 include/linux/netfs.h |  2 ++
 4 files changed, 15 insertions(+), 38 deletions(-)