On Wed, 14 November 2007 13:56:53 +0000, David Howells wrote:I did some digging. The code was merged between 28.4.1999 and 11.5.1999, as it first appears in 2.2.8 and 2.3.0: /* * The page cache can done in larger chunks than * one page, because it allows for more efficient * throughput (it can then be mapped into user * space in smaller chunks for same flexibility). * * Or rather, it _will_ be done in larger chunks. */ #define PAGE_CACHE_SHIFT PAGE_SHIFT #define PAGE_CACHE_SIZE PAGE_SIZE #define PAGE_CACHE_MASK PAGE_MASK #define page_cache_alloc() __get_free_page(GFP_USER) #define page_cache_free(x) free_page(x) #define page_cache_release(x) __free_page(x) Looks like PAGE_CACHE_SIZE>PAGE_SIZE was planned before 2.3 opened, but never went very far. So judging by the last eight years of history, PAGE_CACHE_SIZE is dead. Completely discarding it might be a bad idea, as it serves as code annotation. Christoph Lameters "Large Blocksize Support" patches seem to globally replace PAGE_CACHE_SIZE with a different macro. Having PAGE_CACHE_SIZE makes such an effort easier. Dropping existing annotation seems useless, when maintaining them is zero effort. Large code audits for the PAGE_SIZE/PAGE_CACHE_SIZE distinction seem completely useless, though. For as long as the macro existed, it never ever mattered. My take is to keep it and let it bitrot until someone actually cares. Jörn -- Joern's library part 6: http://www.gzip.org/zlib/feldspar.html - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Kok, Auke | Re: -mm merge plans for 2.6.23 - ioat/dma engine |
| Jeff Garzik | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Matthew Garrett | [PATCH] Remove process freezer from suspend to RAM pathway |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Jens Axboe | Re: [BUG] New Kernel Bugs |
git: | |
