diff options
author | Eric Van Hensbergen <ericvh@kernel.org> | 2022-12-08 03:03:32 +0100 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@kernel.org> | 2023-02-23 23:39:36 +0100 |
commit | 344504e912ea49033d012dad9de3f68e20c07634 (patch) | |
tree | ba2a6c0b0d224fe032138de6f922544edc955154 /fs/9p/v9fs.c | |
parent | net/9p: Adjust maximum MSIZE to account for p9 header (diff) | |
download | linux-344504e912ea49033d012dad9de3f68e20c07634.tar.xz linux-344504e912ea49033d012dad9de3f68e20c07634.zip |
fs/9p: Expand setup of writeback cache to all levels
If cache is enabled, make sure we are putting the right things
in place (mainly impacts mmap). This also sets us up for more
cache levels.
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Reviewed-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'fs/9p/v9fs.c')
-rw-r--r-- | fs/9p/v9fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 3a9c4517265f..61a51b90600d 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c @@ -468,7 +468,7 @@ struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses, #ifdef CONFIG_9P_FSCACHE /* register the session for caching */ - if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { + if (v9ses->cache == CACHE_FSCACHE) { rc = v9fs_cache_session_get_cookie(v9ses, dev_name); if (rc < 0) goto err_clnt; |