On Wed, May 21, 2008 at 02:25:05AM +0400, Evgeniy Polyakov (johnpol@2ka.mipt.ru) wrote:And actually having tiny operations under inode_lock is the last thing to worry about when we are about to start writing pages to disk because memory is so fragmented that we need to move things around. That is the simplest from the typing viewpoint, one can also do something like that: struct address_space *mapping = page->mapping; struct backing_dev_info *bdi = mapping->backing_dev_info; struct writeback_control wbc = { .bdi = bdi, .sync_mode = WB_SYNC_ALL, /* likly we want to wait... */ .older_than_this = NULL, .nr_to_write = 13, .range_cyclic = 0, .range_start = start_index, .range_end = end_index }; do_writepages(mapping, &wbc); Cristoph, is this example you wnated to check out? It will only try to write .nr_to_write pages between .range_start and .range_end without syncing inode info itself. -- Evgeniy Polyakov --
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Linus Torvalds | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| David Newall | Re: Slow DOWN, please!!! |
| Ian Campbell | Re: [PATCH] x86: Construct 32 bit boot time page tables in native format. |
| Matthias Scheler | Re: HEADS UP: timecounters (branch simonb-timecounters) merged into -current |
| Greg Troxel | Re: Interface to change NFS exports |
| Thor Lancelot Simon | metadata cache and memory fragmentation |
| YAMAMOTO Takashi | amap memory allocation |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | [GIT]: Networking |
| Dushan Tcholich | Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1 |
