Btrfs: use larger nr_to_write for larger extents
authorChris Mason <chris.mason@oracle.com>
Fri, 7 Aug 2009 13:28:20 +0000 (09:28 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 11 Sep 2009 17:31:04 +0000 (13:31 -0400)
commita97adc9fffb1707da4e97f91c801660c6be92aac
tree9385c1ada9d5b86b75cd00865bacc6bc39deaa9d
parent4f878e8475a465ddbd951e06a23317303f1b5b30
Btrfs: use larger nr_to_write for larger extents

When btrfs fills a large delayed allocation extent, it is a good idea
to try and convince the write_cache_pages caller to go ahead and
write a good chunk of that extent.  The extra IO is basically free
because we know it is contiguous.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c