Re: [PATCH 14/45] writeback: quit on wrap for .range_cyclic (afs)

From: David Howells
Date: Wed Oct 07 2009 - 06:19:18 EST


Wu Fengguang <fengguang.wu@xxxxxxxxx> wrote:

> Convert wbc.range_cyclic to new behavior: when past EOF, abort writeback
> of the inode, which instructs writeback_single_inode() to delay it for
> a while if necessary.
>
> It removes one inefficient .range_cyclic IO pattern when writeback_index
> wraps:
> submit [10000-10100], (wrap), submit [0-100]
> In which the submitted pages may be consisted of two distant ranges.
>
> It also prevents submitting pointless IO for busy overwriters.
>
> CC: David Howells <dhowells@xxxxxxxxxx>
> Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx>

Acked-by: David Howells <dhowells@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/