Re: [patch 10/21] buffer heads: Support slab defrag

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Chinner <dgc@...>
Cc: Christoph Lameter <clameter@...>, <akpm@...>, <linux-kernel@...>, <linux-fsdevel@...>, Mel Gorman <mel@...>, <andi@...>, Rik van Riel <riel@...>, Pekka Enberg <penberg@...>, <mpm@...>
Date: Tuesday, May 20, 2008 - 7:22 pm

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 10/21] buffer heads: Support slab defrag, Christoph Lameter, (Fri May 9, 11:08 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, David Chinner, (Sun May 11, 8:24 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Christoph Lameter, (Thu May 15, 1:42 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, David Chinner, (Thu May 15, 7:10 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Christoph Lameter, (Fri May 16, 1:01 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, David Chinner, (Mon May 19, 1:45 am)
Re: [patch 10/21] buffer heads: Support slab defrag, Jamie Lokier, (Tue May 20, 6:53 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Christoph Lameter, (Mon May 19, 12:44 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, David Chinner, (Mon May 19, 8:25 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Evgeniy Polyakov, (Tue May 20, 2:56 am)
Re: [patch 10/21] buffer heads: Support slab defrag, David Chinner, (Tue May 20, 5:46 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Evgeniy Polyakov, (Tue May 20, 6:25 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Evgeniy Polyakov, (Tue May 20, 7:22 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Christoph Lameter, (Tue May 20, 9:56 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, David Chinner, (Tue May 20, 7:30 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Evgeniy Polyakov, (Wed May 21, 2:20 am)
Re: [patch 10/21] buffer heads: Support slab defrag, David Chinner, (Tue May 20, 7:19 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Andrew Morton, (Tue May 20, 7:28 pm)
Re: [patch 10/21] buffer heads: Support slab defrag, Evgeniy Polyakov, (Wed May 21, 2:15 am)
Re: [patch 10/21] buffer heads: Support slab defrag, Andrew Morton, (Wed May 21, 2:24 am)
iput() in reclaim context, Hugh Dickins, (Wed May 21, 1:52 pm)
Re: iput() in reclaim context, Andrew Morton, (Wed May 21, 2:12 pm)
Re: iput() in reclaim context, Evgeniy Polyakov, (Wed May 21, 1:58 pm)