diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2025-04-27 18:21:06 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2025-05-16 22:31:35 +0200 |
commit | dcd21b609d4abc7303f8683bce4f35d78d7d6830 (patch) | |
tree | 1399703e057ba5f39c62bc0fbccccb407e3c536b /tools/testing/radix-tree/linux/kernel.h | |
parent | 28511504f3ac73ebf45cbbe0dafeca1026e9a8f3 (diff) |
NFS: Avoid flushing data while holding directory locks in nfs_rename()
The Linux client assumes that all filehandles are non-volatile for
renames within the same directory (otherwise sillyrename cannot work).
However, the existence of the Linux 'subtree_check' export option has
meant that nfs_rename() has always assumed it needs to flush writes
before attempting to rename.
Since NFSv4 does allow the client to query whether or not the server
exhibits this behaviour, and since knfsd does actually set the
appropriate flag when 'subtree_check' is enabled on an export, it
should be OK to optimise away the write flushing behaviour in the cases
where it is clearly not needed.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'tools/testing/radix-tree/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions