lkml.org 
[lkml]   [2021]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 23/23] erofs: support on demand read
Date
Implement .issue_op() callback to support demand reading.

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
---
fs/erofs/fscache.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/fs/erofs/fscache.c b/fs/erofs/fscache.c
index 7d4f6682e521..bd64dbe1b0be 100644
--- a/fs/erofs/fscache.c
+++ b/fs/erofs/fscache.c
@@ -18,13 +18,7 @@ static void erofs_priv_cleanup(struct address_space *mapping, void *netfs_priv)

static void erofs_issue_op(struct netfs_read_subrequest *subreq)
{
- /*
- * TODO: implement demand-read logic later.
- * We rely on user daemon to prepare blob files under corresponding
- * directory, and we can reach here if blob files don't exist.
- */
-
- netfs_subreq_terminated(subreq, -EOPNOTSUPP, false);
+ netfs_demand_read(subreq);
}

const struct netfs_read_request_ops erofs_req_ops = {
--
2.27.0
\
 
 \ /
  Last update: 2021-12-27 13:56    [W:0.203 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site