From: "Stefan Lippers-Hollmann" <s.L-H@gmx.de>
To: David Howells <dhowells@redhat.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
v9fs-developer@lists.sourceforge.net,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: FS-Cache: Handle pages pending storage that get evicted under OOM conditions
Date: Tue, 1 Dec 2009 14:11:10 +0100 [thread overview]
Message-ID: <200912011411.12570.s.L-H@gmx.de> (raw)
In-Reply-To: <200911302259.nAUMx9Ij031249@hera.kernel.org>
Hi
On Tuesday 01 December 2009, Linux Kernel Mailing List wrote:
> Gitweb: http://git.kernel.org/linus/201a15428bd54f83eccec8b7c64a04b8f9431204
> Commit: 201a15428bd54f83eccec8b7c64a04b8f9431204
> Parent: e3d4d28b1c8cc7c26536a50b43d86ccd39878550
> Author: David Howells <dhowells@redhat.com>
> AuthorDate: Thu Nov 19 18:11:35 2009 +0000
> Committer: David Howells <dhowells@redhat.com>
> CommitDate: Thu Nov 19 18:11:35 2009 +0000
>
> FS-Cache: Handle pages pending storage that get evicted under OOM conditions
>
> Handle netfs pages that the vmscan algorithm wants to evict from the pagecache
> under OOM conditions, but that are waiting for write to the cache. Under these
> conditions, vmscan calls the releasepage() function of the netfs, asking if a
> page can be discarded.
[...]
This commit breaks compiling 9p in 2.6.32-rc8-git2:
CC [M] fs/9p/cache.o
fs/9p/cache.c: In function '__v9fs_fscache_release_page':
fs/9p/cache.c:346: error: 'vnode' undeclared (first use in this function)
fs/9p/cache.c:346: error: (Each undeclared identifier is reported only once
fs/9p/cache.c:346: error: for each function it appears in.)
make[2]: *** [fs/9p/cache.o] Error 1
> diff --git a/fs/9p/cache.c b/fs/9p/cache.c
> index 51c94e2..bcc5357 100644
> --- a/fs/9p/cache.c
> +++ b/fs/9p/cache.c
> @@ -343,18 +343,7 @@ int __v9fs_fscache_release_page(struct page *page, gfp_t gfp)
>
> BUG_ON(!vcookie->fscache);
>
> - if (PageFsCache(page)) {
> - if (fscache_check_page_write(vcookie->fscache, page)) {
> - if (!(gfp & __GFP_WAIT))
> - return 0;
> - fscache_wait_on_page_write(vcookie->fscache, page);
> - }
> -
> - fscache_uncache_page(vcookie->fscache, page);
> - ClearPageFsCache(page);
> - }
> -
> - return 1;
> + return fscache_maybe_release_page(vnode->cache, page, gfp);
> }
>
[...]
Regards
Stefan Lippers-Hollmann
9p: fix build failure introduced by 201a15428bd54f83eccec8b7c64a04b8f9431204
CC [M] fs/9p/cache.o
fs/9p/cache.c: In function '__v9fs_fscache_release_page':
fs/9p/cache.c:346: error: 'vnode' undeclared (first use in this function)
fs/9p/cache.c:346: error: (Each undeclared identifier is reported only once
fs/9p/cache.c:346: error: for each function it appears in.)
make[2]: *** [fs/9p/cache.o] Error 1
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
---
build tested only.
fs/9p/cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/9p/cache.c b/fs/9p/cache.c
index bcc5357..e777961 100644
--- a/fs/9p/cache.c
+++ b/fs/9p/cache.c
@@ -343,7 +343,7 @@ int __v9fs_fscache_release_page(struct page *page, gfp_t gfp)
BUG_ON(!vcookie->fscache);
- return fscache_maybe_release_page(vnode->cache, page, gfp);
+ return fscache_maybe_release_page(vcookie->fscache, page, gfp);
}
void __v9fs_fscache_invalidate_page(struct page *page)
next parent reply other threads:[~2009-12-01 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200911302259.nAUMx9Ij031249@hera.kernel.org>
2009-12-01 13:11 ` Stefan Lippers-Hollmann [this message]
2009-12-01 13:24 ` 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=200912011411.12570.s.L-H@gmx.de \
--to=s.l-h@gmx.de \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=v9fs-developer@lists.sourceforge.net \
/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®