From: David Howells <dhowells@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: torvalds@osdl.org, akpm@osdl.org, steved@redhat.com,
trond.myklebust@fys.uio.no, linux-fsdevel@vger.kernel.org,
linux-cachefs@redhat.com, nfsv4@linux-nfs.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management
Date: Wed, 01 Aug 2007 09:27:13 +0100 [thread overview]
Message-ID: <17631.1185956833@redhat.com> (raw)
In-Reply-To: <1185949055.12034.31.camel@twins>
Peter Zijlstra <peterz@infradead.org> wrote:
> Not sure its a good idea to overload page_has_private() with an
> overloadable page-flag. What if some future FS wants to use
> PG_owner_priv_2 for other purposes?
All that it means is that releasepage() and co will get called if a page is to
be released or invalidated that has that bit set. I think that's something a
future FS could probably live with.
However, I do have to trigger a call to releasepage() and co *somehow*.
> Obviously filesystems cannot use these two page-flags if they want to be
> compatible with FS-cache, but need all filesystems be?
What do you mean? That's why I went for the PG_owner_priv_* approach rather
than just naming the bits unto FS-Cache directly.
> (also, ouch! - 2 pageflags)
Yeah. The consequence of having things asynchronous is that you have to find
signalling mechanisms to synchronise around the asynchronicity:-/
Furthermore, it occurs to me that I can't use PG_private or page->private to
store this information because I want to make isofs use caching, and those two
pieces of information are owned by the buffering code.
David
WARNING: multiple messages have this Message-ID (diff)
From: David Howells <dhowells@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, nfsv4@linux-nfs.org,
trond.myklebust@fys.uio.no, torvalds@osdl.org,
linux-cachefs@redhat.com, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management
Date: Wed, 01 Aug 2007 09:27:13 +0100 [thread overview]
Message-ID: <17631.1185956833@redhat.com> (raw)
In-Reply-To: <1185949055.12034.31.camel@twins>
Peter Zijlstra <peterz@infradead.org> wrote:
> Not sure its a good idea to overload page_has_private() with an
> overloadable page-flag. What if some future FS wants to use
> PG_owner_priv_2 for other purposes?
All that it means is that releasepage() and co will get called if a page is to
be released or invalidated that has that bit set. I think that's something a
future FS could probably live with.
However, I do have to trigger a call to releasepage() and co *somehow*.
> Obviously filesystems cannot use these two page-flags if they want to be
> compatible with FS-cache, but need all filesystems be?
What do you mean? That's why I went for the PG_owner_priv_* approach rather
than just naming the bits unto FS-Cache directly.
> (also, ouch! - 2 pageflags)
Yeah. The consequence of having things asynchronous is that you have to find
signalling mechanisms to synchronise around the asynchronicity:-/
Furthermore, it occurs to me that I can't use PG_private or page->private to
store this information because I want to make isofs use caching, and those two
pieces of information are owned by the buffering code.
David
next prev parent reply other threads:[~2007-08-01 8:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-31 20:24 [PATCH 00/14] Permit filesystem local caching David Howells
2007-07-31 20:25 ` [PATCH 01/14] FS-Cache: Release page->private after failed readahead David Howells
2007-07-31 20:25 ` [PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management David Howells
2007-08-01 6:17 ` Peter Zijlstra
2007-08-01 6:17 ` Peter Zijlstra
2007-08-01 8:27 ` David Howells [this message]
2007-08-01 8:27 ` David Howells
2007-07-31 20:25 ` [PATCH 03/14] FS-Cache: Provide an add_wait_queue_tail() function David Howells
2007-07-31 20:25 ` [PATCH 04/14] FS-Cache: Generic filesystem caching facility David Howells
2007-07-31 20:25 ` [PATCH 05/14] CacheFiles: Add missing copy_page export for ia64 David Howells
2007-07-31 20:25 ` [PATCH 06/14] CacheFiles: Add a hook to write a single page of data to an inode David Howells
2007-07-31 20:25 ` [PATCH 07/14] CacheFiles: Permit the page lock state to be monitored David Howells
2007-07-31 20:25 ` [PATCH 08/14] CacheFiles: Export things for CacheFiles David Howells
2007-07-31 20:25 ` [PATCH 09/14] CacheFiles: Permit a process's create SID to be overridden David Howells
2007-07-31 20:25 ` [PATCH 10/14] CacheFiles: Add an act-as SID override in task_security_struct David Howells
2007-07-31 20:25 ` [PATCH 11/14] CacheFiles: Permit an inode's security ID to be obtained David Howells
2007-07-31 20:25 ` [PATCH 12/14] CacheFiles: Get the SID under which the CacheFiles module should operate David Howells
2007-07-31 20:26 ` [PATCH 13/14] CacheFiles: A cache that backs onto a mounted filesystem David Howells
2007-07-31 20:26 ` [PATCH 14/14] NFS: Use local caching 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=17631.1185956833@redhat.com \
--to=dhowells@redhat.com \
--cc=akpm@osdl.org \
--cc=linux-cachefs@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nfsv4@linux-nfs.org \
--cc=peterz@infradead.org \
--cc=steved@redhat.com \
--cc=torvalds@osdl.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.