From: Li Wang <liwang@ubuntukylin.com>
To: linux-kernel@vger.kernel.org
Cc: ceph-devel@vger.kernel.org, Sage Weil <sage@inktank.com>,
linux-fsdevel@vger.kernel.org, linux-cifs@vger.kernel.org,
Milosz Tanski <milosz@adfin.com>,
Li Wang <liwang@ubuntukylin.com>
Subject: [PATCH 2/7] Fscache: Implement uncaching single no-data page
Date: Mon, 11 Nov 2013 23:27:24 +0800 [thread overview]
Message-ID: <57f79ce8b28f2f0e3837f66c3aa99eb078bc5bf7.1384183054.git.liwang@ubuntukylin.com> (raw)
In-Reply-To: <cover.1384183054.git.liwang@ubuntukylin.com>
In-Reply-To: <cover.1384183054.git.liwang@ubuntukylin.com>
Similar to the routine for multiple pages except
that it takes page * as input rather than list head *.
Signed-off-by: Li Wang <liwang@ubuntukylin.com>
---
fs/fscache/page.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/fs/fscache/page.c b/fs/fscache/page.c
index 7f5c658..0c69f72 100644
--- a/fs/fscache/page.c
+++ b/fs/fscache/page.c
@@ -721,6 +721,14 @@ nobufs:
}
EXPORT_SYMBOL(__fscache_alloc_page);
+void __fscache_readpage_cancel(struct fscache_cookie *cookie,
+ struct page *page)
+{
+ if (PageFsCache(page))
+ __fscache_uncache_page(cookie, page);
+}
+EXPORT_SYMBOL(__fscache_readpage_cancel);
+
/*
* Unmark pages allocate in the readahead code path (via:
* fscache_readpages_or_alloc) after delegating to the base filesystem
--
1.7.9.5
next prev parent reply other threads:[~2013-11-11 15:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-11 15:27 [PATCH 0/7] Cifs and Ceph: Uncache single no-data page in readpage() Li Wang
2013-11-11 15:27 ` [PATCH 1/7] Fscache: Introduce new API fscache_readpage_cancel() Li Wang
2013-11-11 15:27 ` Li Wang [this message]
2013-11-11 15:27 ` [PATCH 3/7] Ceph: Introduce routine for uncaching single no-data page Li Wang
2013-11-11 15:27 ` [PATCH 4/7] Ceph: Uncaching no-data page in readpage() Li Wang
2013-11-11 15:27 ` [PATCH 5/7] Cifs: Introduce routine for uncaching single no-data page Li Wang
2013-11-11 15:27 ` [PATCH 6/7] Cifs: Implement " Li Wang
2013-11-11 15:27 ` [PATCH 7/7] Cifs: Uncaching no-data page in readpage() Li Wang
2013-11-11 16:19 ` [PATCH 0/7] Cifs and Ceph: Uncache single " Milosz Tanski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57f79ce8b28f2f0e3837f66c3aa99eb078bc5bf7.1384183054.git.liwang@ubuntukylin.com \
--to=liwang@ubuntukylin.com \
--cc=ceph-devel@vger.kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=milosz@adfin.com \
--cc=sage@inktank.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®