On Sun, Jan 24, 2010 at 2:25 PM, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote: > On Sun, Jan 24, 2010 at 4:48 AM, Himanshu Chauhan > <himanshu@xxxxxxxxxxxxxxxx> wrote: >> Hi Mulyadi, >> >> The file mm-flags.h defines a set of macros like >> >> #define TESTPAGEFLAG(uname, lname) \ >> static inline int Page##uname(struct page *page) \ >> { return test_bit(PG_##lname, &page->flags); } >> >> This macro creates the function you are lookign for. PG_swapbacked is the >> bit for marking if page is backed by swap. I believe ##uname of swapbacked >> is equivalent to SwapBacked and similarly lname is swapbacked itself. > > Thanks a lot! :) > > Perhaps there's a slight difference between kernel versions, but in my > local copy of 2.6.32 vanilla source tree, it's in > include/linux/page-flags.h. However, the definitions you mention above > remain the same. Hi Mulyadi, I may be wrongly gave mm-flags.h file to you. Not sure though, need to recheck. I gave it from 2.6.33-rc2 Linus' tree I have. I need to check again. Regards Himanshu -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ