mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
8491945f11
commit
d7fb120774
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue