From: David Howells <dhowells@redhat.com>
To: akpm@osdl.org, trond.myklebust@fys.uio.no,
michal.k.k.piotrowski@gmail.com, maciej.rutecki@gmail.com,
bunk@stusta.de
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
dhowells@redhat.com
Subject: [PATCH 2/4] FS-Cache: AFS: Fix up AFS filesystem caching patch
Date: Mon, 21 Aug 2006 13:50:25 +0100 [thread overview]
Message-ID: <20060821125025.1437.52134.stgit@warthog.cambridge.redhat.com> (raw)
In-Reply-To: <20060821125022.1437.2836.stgit@warthog.cambridge.redhat.com>
Fix up the AFS filesystem caching patch for when caching is disabled.
Signed-Off-By: David Howells <dhowells@redhat.com>
---
fs/afs/file.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/fs/afs/file.c b/fs/afs/file.c
index 93f2cc0..db441c5 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -323,13 +323,15 @@ static int afs_file_releasepage(struct p
{
_enter("{%lu},%x", page->index, gfp_flags);
- /* deny */
+#ifdef CONFIG_AFS_FSCACHE
+ /* deny if page is being written to the cache */
if (PageFsMisc(page)) {
_leave(" = F");
return 0;
}
fscache_uncache_page(AFS_FS_I(page->mapping->host)->cache, page);
+#endif
/* indicate that the page can be released */
_leave(" = T");
next prev parent reply other threads:[~2006-08-21 12:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-21 12:50 [PATCH 1/4] NFS: Fix up warnings David Howells
2006-08-21 12:50 ` David Howells [this message]
2006-08-21 12:50 ` [PATCH 3/4] NFS: Fix up filesystem caching patch David Howells
2006-08-21 12:50 ` [PATCH 4/4] FS-Cache: CacheFiles: Fix up warnings David Howells
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=20060821125025.1437.52134.stgit@warthog.cambridge.redhat.com \
--to=dhowells@redhat.com \
--cc=akpm@osdl.org \
--cc=bunk@stusta.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maciej.rutecki@gmail.com \
--cc=michal.k.k.piotrowski@gmail.com \
--cc=trond.myklebust@fys.uio.no \
/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;
as well as URLs for NNTP newsgroup(s).