[PATCH 17/22] AFS: Add TestSetPageError()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <viro@...>, <hch@...>, <Trond.Myklebust@...>, <sds@...>, <casey@...>
Cc: <linux-kernel@...>, <selinux@...>, <linux-security-module@...>, <dhowells@...>
Date: Friday, September 21, 2007 - 10:48 am

Add a TestSetPageError() macro to the suite of page flag manipulators.  This
can be used by AFS to prevent over-excision of rejected writes from the page
cache.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 include/linux/page-flags.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index eaf9854..b59506b 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -130,6 +130,7 @@
 #define PageError(page)		test_bit(PG_error, &(page)->flags)
 #define SetPageError(page)	set_bit(PG_error, &(page)->flags)
 #define ClearPageError(page)	clear_bit(PG_error, &(page)->flags)
+#define TestSetPageError(page)	test_and_set_bit(PG_error, &(page)->flags)
 
 #define PageReferenced(page)	test_bit(PG_referenced, &(page)->flags)
 #define SetPageReferenced(page)	set_bit(PG_referenced, &(page)->flags)

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/22] Introduce credential record, David Howells, (Fri Sep 21, 10:47 am)
[PATCH 01/22] CRED: Introduce a COW credentials record, David Howells, (Fri Sep 21, 10:47 am)
Re: [PATCH 00/22] Introduce credential record, David Howells, (Fri Sep 21, 10:58 am)
Re: [PATCH 00/22] Introduce credential record, Casey Schaufler, (Fri Sep 21, 11:36 am)
Re: [PATCH 00/22] Introduce credential record, David Howells, (Fri Sep 21, 11:40 am)
Re: [PATCH 00/22] Introduce credential record, Casey Schaufler, (Fri Sep 21, 12:04 pm)
Re: [PATCH 00/22] Introduce credential record, David Howells, (Fri Sep 21, 7:18 pm)
[PATCH 22/22] FS-Cache: Make kAFS use FS-Cache, David Howells, (Fri Sep 21, 10:48 am)
[PATCH 20/22] AFS: Implement shared-writable mmap, David Howells, (Fri Sep 21, 10:48 am)
[PATCH 17/22] AFS: Add TestSetPageError(), David Howells, (Fri Sep 21, 10:48 am)
[PATCH 16/22] NFS: Display local caching state, David Howells, (Fri Sep 21, 10:48 am)
[PATCH 14/22] NFS: Use local caching, David Howells, (Fri Sep 21, 10:48 am)
Re: [PATCH 14/22] NFS: Use local caching, Peter Staubach, (Fri Sep 21, 1:00 pm)
Re: [PATCH 14/22] NFS: Use local caching, David Howells, (Fri Sep 21, 7:22 pm)
Re: [PATCH 14/22] NFS: Use local caching, David Howells, (Fri Sep 21, 7:37 pm)
Re: [PATCH 14/22] NFS: Use local caching, Peter Staubach, (Mon Sep 24, 9:31 am)
[PATCH 12/22] CacheFiles: Export things for CacheFiles, David Howells, (Fri Sep 21, 10:48 am)