lkml.org 
[lkml]   [2007]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 23/28] AFS: Add TestSetPageError() [try #2]
    Date
    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 fcc9e23..0350c37 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)


    \
     
     \ /
      Last update: 2007-12-05 20:57    [W:4.171 / U:0.168 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site