From: David Howells Date: Fri, 3 Apr 2009 15:42:36 +0000 (+0100) Subject: FS-Cache: Recruit a page flags for cache management X-Git-Tag: v2.6.30-rc1~229^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=266cf658efcf6ac33541a46740f74f50c79d2b6b;p=pandora-kernel.git FS-Cache: Recruit a page flags for cache management Recruit a page flag to aid in cache management. The following extra flag is defined: (1) PG_fscache (PG_private_2) The marked page is backed by a local cache and is pinning resources in the cache driver. If PG_fscache is set, then things that checked for PG_private will now also check for that. This includes things like truncation and page invalidation. The function page_has_private() had been added to make the checks for both PG_private and PG_private_2 at the same time. Signed-off-by: David Howells Acked-by: Steve Dickson Acked-by: Trond Myklebust Acked-by: Rik van Riel Acked-by: Al Viro Tested-by: Daire Byrne --- Reading git-diff-tree failed