NFS: Don't use range_cyclic for data integrity syncs
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 7 Oct 2008 00:08:56 +0000 (20:08 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 7 Oct 2008 22:19:05 +0000 (18:19 -0400)
It is more efficient to write linearly starting from the beginning of the
file.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c

index 3229e21..9f98458 100644 (file)
@@ -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;