On Fri, 21 Sep 2007, KAMEZAWA Hiroyuki wrote:My own vote (nothing more) would be for you to set this aside until some future time when there aren't a dozen developers all trampling over each other in this area. They're invasive little changes affecting all filesystems, whereas what we've done so far with page->mapping hasn't affected filesystems at all. Purposes 1 and 2 don't score very high in my book (though I too regret how mm/migrate.c copied that PAGE_MAPPING_ANON stuff from it's rightful home in mm/rmap.c: maybe we should wrap that). There's no end to the wrappers we can add, but they're not always helpful. 3: well, saving memory is good, but I think it could wait until some other time, particularly since the memory controller isn't in yet. Wouldn't it be easier to do something with page->lru than page->mapping? Everybody is interested in page->mapping, not so many in page->lru. (Though perhaps it wouldn't work out so well, since you don't need to get uniquely from mapping to page, whereas you do from lru to page.) If we were to attack page->mapping to save memory from struct page, then we should consider Magnus Damm's idea too: he suggested it could be replaced by a pointer to the radixtree slot (something else needed in the anon case), from which "index" could be deduced via alignment instead of keeping it in struct page (details to be filled in ...) Of course, my particular prejudice is that I promised months ago to free up the PG_swapcache bit by using a PAGE_MAPPING_SWAP bit instead. That patch got buried while I tried to think up a suitable name for a further page_mapping() variant that turned out to be needed - guess I should look through your collection to see if I can steal one ;) Beyond the unsatisfactory naming, that work has been long done (and like PAGE_MAPPING_ANON, doesn't touch filesystems at all). Or should I now leave PG_swapcache as is, given your designs on page->mapping? Hugh p.s. Sorry to niggle, but next time, please say [PATCH 1/3] etc. rather than [PATCH] Long Description [1/3], so it's easier to sort the mail subjects by eye in limited columns - thanks. -
| Cliffe | Re: [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning |
| Amit K. Arora | [RFC] Heads up on sys_fallocate() |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | Re: [RFC/PATCH] Documentation of kernel messages |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Radu Rendec | Endianness problem with u32 classifier hash masks |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
git: | |
