nfs: flag as supporting FOP_DONTCACHE
authorMike Snitzer <snitzer@kernel.org>
Thu, 14 Nov 2024 22:09:01 +0000 (22:09 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2024 15:30:55 +0000 (08:30 -0700)
commitdfe872f49a0d35b19fb906caad5df53716943e2c
tree25bfa0e09f373af4753927c2646c84aafc6053f6
parent1e356cfca552cb03d9b67a2cd6cfbb1646d7e962
nfs: flag as supporting FOP_DONTCACHE

Jens says: "nfs just uses generic_file_read_iter(), so read side is
fine with the flag added and generic_perform_write() for the write
side, wrapped in some nfs jazz. So you can probably just set the flag
and be done with it."

Must also update nfs_write_begin() to set FGP_DONTCACHE in fgp flags
passed to __filemap_get_folio().

Suggested-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/nfs/file.c
fs/nfs/nfs4file.c