Skip to content

Commit

Permalink
cachefiles: notify user daemon with anon_fd when looking up cookie
Browse files Browse the repository at this point in the history
Send the anonymous fd to user daemon when looking up cookie, no matter
whether the cache file exist there or not. With the given anonymous fd,
user daemon can fetch and then write data into cache file in advance,
even when cache miss has not happended yet.

Also add one advisory flag (FSCACHE_ADV_WANT_CACHE_SIZE) suggesting that
cache file size shall be retrieved at runtime. This helps the scenario
where one cache file can contain multiple netfs files for the purpose of
deduplication, e.g. In this case, netfs itself has no idea the cache
file size, whilst user daemon needs to offer the hint on the cache file
size.

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
  • Loading branch information
lostjeffle authored and intel-lab-lkp committed Mar 16, 2022
1 parent 7c0d91f commit ef29cbd
Show file tree
Hide file tree
Showing 6 changed files with 444 additions and 3 deletions.

0 comments on commit ef29cbd

Please sign in to comment.