summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-12-29 20:45:26 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-12-29 20:45:26 +0000
commitbe883f83ce78656ba224456740f52e2f2509a1dd (patch)
tree0f29caf57c82d679ac4f1d56de7c4148af59f782
parentHave flush() wait on each BG operation in turn without holding _lock, BG oper... (diff)
downloadnetfs-be883f83ce78656ba224456740f52e2f2509a1dd.tar.bz2
netfs-be883f83ce78656ba224456740f52e2f2509a1dd.tar.xz
netfs-be883f83ce78656ba224456740f52e2f2509a1dd.zip
Create the BG range with the parameters the right way round
-rw-r--r--netfs/fuse/fuseFiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs/fuse/fuseFiles.cpp b/netfs/fuse/fuseFiles.cpp
index 8aed188..ed0e881 100644
--- a/netfs/fuse/fuseFiles.cpp
+++ b/netfs/fuse/fuseFiles.cpp
@@ -128,7 +128,7 @@ FuseApp::write(const char *, const char * buf, size_t s, off_t o, struct fuse_fi
auto of = getProxy<OpenFilePtr>(fi->fh);
auto remote = of->remote;
if (fcr->Async) {
- const auto key = OpenFile::range(s, o);
+ const auto key = OpenFile::range(o, s);
while (true) {
ScopeLock(of->_lock) {
// Acquire operations to wait for