[PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management [try #2]

2007-08-09 Thread David Howells
Recruit a couple of page flags to aid in cache management. The following extra flags are defined: (1) PG_fscache (PG_owner_priv_2) The marked page is backed by a local cache and is pinning resources in the cache driver. (2) PG_fscache_write (PG_owner_priv_3) The marked page

[PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management [try #2]

2007-08-09 Thread David Howells
Recruit a couple of page flags to aid in cache management. The following extra flags are defined: (1) PG_fscache (PG_owner_priv_2) The marked page is backed by a local cache and is pinning resources in the cache driver. (2) PG_fscache_write (PG_owner_priv_3) The marked page

Re: [PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management

2007-08-01 Thread David Howells
Peter Zijlstra <[EMAIL PROTECTED]> 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

Re: [PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management

2007-08-01 Thread Peter Zijlstra
On Tue, 2007-07-31 at 21:25 +0100, David Howells wrote: > diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h > index 209d3a4..eaf9854 100644 > --- a/include/linux/page-flags.h > +++ b/include/linux/page-flags.h > @@ -83,19 +83,24 @@ > #define PG_private 11 /* If

Re: [PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management

2007-08-01 Thread Peter Zijlstra
On Tue, 2007-07-31 at 21:25 +0100, David Howells wrote: diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 209d3a4..eaf9854 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -83,19 +83,24 @@ #define PG_private 11 /* If

Re: [PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management

2007-08-01 Thread David Howells
Peter Zijlstra [EMAIL PROTECTED] 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

[PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management

2007-07-31 Thread David Howells
Recruit a couple of page flags to aid in cache management. The following extra flags are defined: (1) PG_fscache (PG_owner_priv_2) The marked page is backed by a local cache and is pinning resources in the cache driver. (2) PG_fscache_write (PG_owner_priv_3) The marked page

[PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management

2007-07-31 Thread David Howells
Recruit a couple of page flags to aid in cache management. The following extra flags are defined: (1) PG_fscache (PG_owner_priv_2) The marked page is backed by a local cache and is pinning resources in the cache driver. (2) PG_fscache_write (PG_owner_priv_3) The marked page