diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-10-07 02:08:56 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-10-08 00:19:05 +0200 |
commit | d7fb120774f062ce7db439863ab5d4190d6f989c (patch) | |
tree | 621ce0a776c3bc4b66d0cea87e06f6ea7ed79398 /fs/nfs/write.c | |
parent | NFS: Client mounts hang when exported directory do not exist (diff) | |
download | linux-d7fb120774f062ce7db439863ab5d4190d6f989c.tar.xz linux-d7fb120774f062ce7db439863ab5d4190d6f989c.zip |
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 <Trond.Myklebust@netapp.com>
Diffstat (limited to '')
-rw-r--r-- | fs/nfs/write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 3229e217c773..9f9845859fc1 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; |