Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7fb1207 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 8491945f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;