projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8491945
)
NFS: Don't use range_cyclic for data integrity syncs
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 7 Oct 2008 00:08:56 +0000
(20:08 -0400)
committer
Trond 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/write.c
b/fs/nfs/write.c
index 3229e217c773a357cd7735f9cd72351c075dbee1..9f9845859fc1805627c317bc18963473427cbdd2 100644
(file)
--- 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;