From: Trond Myklebust Date: Tue, 7 Oct 2008 00:08:56 +0000 (-0400) Subject: NFS: Don't use range_cyclic for data integrity syncs X-Git-Tag: v2.6.28-rc1~266^2^2~24 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d7fb120774f062ce7db439863ab5d4190d6f989c;p=linux-2.6-omap-h63xx.git NFS: Don't use range_cyclic for data integrity syncs It is more efficient to write linearly starting from the beginning of the file. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 3229e217c77..9f9845859fc 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1427,8 +1427,9 @@ static int nfs_write_mapping(struct address_space *mapping, int how) .bdi = mapping->backing_dev_info, .sync_mode = WB_SYNC_NONE, .nr_to_write = LONG_MAX, + .range_start = 0, + .range_end = LLONG_MAX, .for_writepages = 1, - .range_cyclic = 1, }; int ret;