fs/9p: Consolidate file operations and add readahead and writeback
authorEric Van Hensbergen <ericvh@kernel.org>
Thu, 8 Dec 2022 02:40:37 +0000 (02:40 +0000)
committerEric Van Hensbergen <ericvh@kernel.org>
Mon, 27 Mar 2023 02:33:39 +0000 (02:33 +0000)
commitd9bc0d11e33bd7b6bfeedc570cd5738e5b4c7ca8
treeb37a1976408102f8bf285272558f9e83d69955d6
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
fs/9p: Consolidate file operations and add readahead and writeback

We had 3 different sets of file operations across 2 different protocol
variants differentiated by cache which really only changed 3
functions.  But the real problem is that certain file modes, mount
options, and other factors weren't being considered when we
decided whether or not to use caches.

This consolidates all the operations and switches
to conditionals within a common set to decide whether or not
to do different aspects of caching.

Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Reviewed-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/v9fs.c
fs/9p/v9fs.h
fs/9p/v9fs_vfs.h
fs/9p/vfs_dir.c
fs/9p/vfs_file.c
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c