Skip to content

Commit

Permalink
Renaming the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-prince committed May 9, 2024
1 parent 483c8f2 commit 626390a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -853,11 +853,11 @@ func (c *Connection) kernelResponseForOp(
out := (*fusekernel.OpenOut)(m.Grow(int(unsafe.Sizeof(fusekernel.OpenOut{}))))
out.Fh = uint64(o.Handle)

if o.KeepDirectoryContentsPageCache {
if o.CacheDirContentAsPageCache {
out.OpenFlags |= uint32(fusekernel.OpenCacheDir)
}

if o.KeepDirectoryContentsPageCache {
if o.KeepDirContentPageCache {
out.OpenFlags |= uint32(fusekernel.OpenKeepCache)
}

Expand Down
10 changes: 6 additions & 4 deletions fuseops/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,13 @@ type OpenDirOp struct {
Handle HandleID
OpContext OpContext

// Convey the kernel to cache the directory contents in the page cache.
CacheDirContentsAsPageCache bool
// CacheDirContentAsPageCache conveys the kernel to cache the response of next
// ReadDirOp as page cache. Once cached, listing on that directory will be
// served from the kernel until invalidated.
CacheDirContentAsPageCache bool

// Either to keep previous directory contents page cache or not.
KeepDirectoryContentsPageCache bool
// KeepDirContentPageCache used to invalidate the cached directory content.
KeepDirContentPageCache bool
}

// Read entries from a directory previously opened with OpenDir.
Expand Down

0 comments on commit 626390a

Please sign in to comment.