[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20060821125025.1437.52134.stgit@warthog.cambridge.redhat.com>
Date: Mon, 21 Aug 2006 13:50:25 +0100
From: David Howells <dhowells@...hat.com>
To: akpm@...l.org, trond.myklebust@....uio.no,
michal.k.k.piotrowski@...il.com, maciej.rutecki@...il.com,
bunk@...sta.de
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
dhowells@...hat.com
Subject: [PATCH 2/4] FS-Cache: AFS: Fix up AFS filesystem caching patch
Fix up the AFS filesystem caching patch for when caching is disabled.
Signed-Off-By: David Howells <dhowells@...hat.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");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists