[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211227125444.21187-24-jefflexu@linux.alibaba.com>
Date: Mon, 27 Dec 2021 20:54:44 +0800
From: Jeffle Xu <jefflexu@...ux.alibaba.com>
To: dhowells@...hat.com, linux-cachefs@...hat.com, xiang@...nel.org,
chao@...nel.org, linux-erofs@...ts.ozlabs.org
Cc: linux-fsdevel@...r.kernel.org, joseph.qi@...ux.alibaba.com,
bo.liu@...ux.alibaba.com, tao.peng@...ux.alibaba.com,
gerry@...ux.alibaba.com, eguan@...ux.alibaba.com,
linux-kernel@...r.kernel.org
Subject: [PATCH v1 23/23] erofs: support on demand read
Implement .issue_op() callback to support demand reading.
Signed-off-by: Jeffle Xu <jefflexu@...ux.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
Powered by blists - more mailing lists