lkml.org 
[lkml]   [2006]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC] booked-page-flag.patch
    Date


    Index: linux-2.6.20-rc1/include/linux/page-flags.h
    ===================================================================
    --- linux-2.6.20-rc1.orig/include/linux/page-flags.h 2006-12-14 04:14:23.000000000 +0300
    +++ linux-2.6.20-rc1/include/linux/page-flags.h 2006-12-22 20:05:31.000000000 +0300
    @@ -90,6 +90,7 @@
    #define PG_reclaim 17 /* To be reclaimed asap */
    #define PG_nosave_free 18 /* Used for system suspend/resume */
    #define PG_buddy 19 /* Page is free, on buddy lists */
    +#define PG_booked 20 /* Has blocks reserved on-disk */


    #if (BITS_PER_LONG > 32)
    @@ -230,6 +231,10 @@ static inline void SetPageUptodate(struc
    #define SetPageMappedToDisk(page) set_bit(PG_mappedtodisk, &(page)->flags)
    #define ClearPageMappedToDisk(page) clear_bit(PG_mappedtodisk, &(page)->flags)

    +#define PageBooked(page) test_bit(PG_booked, &(page)->flags)
    +#define SetPageBooked(page) set_bit(PG_booked, &(page)->flags)
    +#define ClearPageBooked(page) clear_bit(PG_booked, &(page)->flags)
    +
    #define PageReclaim(page) test_bit(PG_reclaim, &(page)->flags)
    #define SetPageReclaim(page) set_bit(PG_reclaim, &(page)->flags)
    #define ClearPageReclaim(page) clear_bit(PG_reclaim, &(page)->flags)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-12-22 22:13    [W:0.022 / U:63.856 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site