Fix page_mkwrite() for blocksize < pagesize
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest11 patches 25 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | ext3: Get rid of extenddisksize parameter of ext3_get_blocks_handle()fs/ fs/ include/ | +5 | 0 replies | |
| 2/11 | ext4: Get rid of extend_disksize parameter of ext4_get_blocks_handle()fs/ fs/ fs/ +1 more | +18 | 0 replies | |
| 3/11 | vfs: Add better VFS support for page_mkwrite when blocksize < pagesizefs/ include/ include/ +2 more | +166 | 12 replies | |
| 4/11 | ext2: Allocate space for mmaped file on page faultfs/ fs/ | +26 | 0 replies | |
| 5/11 | ext4: Make sure blocks are properly allocated under mmaped page even when blocksize < pagesizefs/ fs/ | +19 | 3 replies | |
| 6/11 | ext3: Allocate space for mmaped file on page faultfs/ fs/ include/ | +116 | 0 replies | |
| 7/11 | vfs: Implement generic per-cpu counters for delayed allocationfs/ fs/ fs/ +2 more | +178 | 0 replies | |
| 8/11 | vfs: Unmap underlying metadata of new data buffers only when buffer is mappedfs/ | +7 | 4 replies | |
| 9/11 | fs: Don't clear dirty bits in block_write_full_page()fs/ | +17 | 0 replies | |
| 10/11 | vfs: Export wakeup_pdflushmm/ | +1 | 0 replies | |
| 11/11 | ext3: Implement delayed allocation on page_mkwrite timefs/ fs/ fs/ +5 more | +217 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/11] Fix page_mkwrite() for blocksize < pagesize
patches below are an attempt to solve problems filesystems have with page_mkwrite() when blocksize < pagesize (see the changelog of the third patch for details).
The series is against 2.6.30-rc7. The first two patches are just small cleanup and should be merged separately (Ted should have the ext4 cleanup rebased on top of current ext4 tree). For ext3 the fix is done in two phases, in the first we make it to correctly allocate space at page-fault time from page_mkwrite(). This has the disadvantage that under random mmaped writes, the file gets much more fragmented and performance of e.g. Berkeley DB drops by ~20%. Therefore in the second phase I've implemented delayed allocation for ext3 and blocks are just reserved during page_mkwrite time and really allocated only during writepage. This gets the performance back to original numbers for me.
The patches should be fairly complete and sustained quite some testing. OTOH the area is kind of complex so please review them so that they can get merged. Thanks.
Honza