diff options
| author | Jakob Unterwurzacher | 2026-07-16 20:32:51 +0200 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-07-16 22:07:54 +0200 |
| commit | a95d6ac5818a749db67d34bcbe9a358d403b6a6e (patch) | |
| tree | 797bc90aca023f1d070e5b1e33e28650bcaebf44 /internal/fusefrontend/file.go | |
| parent | 29000177b94c6c9aaab97b3f3d8ed5123ed7cf44 (diff) | |
fusefrontend: sharedstorage: introduce UnlockSharedStorage helper
Diffstat (limited to 'internal/fusefrontend/file.go')
| -rw-r--r-- | internal/fusefrontend/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go index b7ff032..a9171aa 100644 --- a/internal/fusefrontend/file.go +++ b/internal/fusefrontend/file.go @@ -327,7 +327,7 @@ func (f *File) doWrite(data []byte, off int64) (uint32, syscall.Errno) { tlog.Warn.Printf("ino%d: LockSharedStorage(F_WRLCK, %d, %d) failed: %v", f.qIno.Ino, cOff, int64(lkLen), err) return 0, fs.ToErrno(err) } - defer f.LockSharedStorage(unix.F_UNLCK, int64(cOff), int64(lkLen)) + defer f.UnlockSharedStorage(int64(cOff), int64(lkLen)) for i, b := range blocks { blockData := dataBuf.Next(int(b.Length)) |
