diff options
| author | Avi Weiss <thnkslprpt@gmail.com> | 2026-10-18 21:30:42 +0300 |
|---|---|---|
| committer | Anna Schumaker <anna.schumaker@hammerspace.com> | 2026-11-09 15:04:53 -0500 |
| commit | b9d518902ff1969f93d2b4787951d98e50ab0181 (patch) | |
| tree | 67235ab1016ce2d73a2cd238589871855d764b57 /rust/kernel/alloc/kvec | |
| parent | a38d7cc8c90f0d093550487c2905b51db0be1522 (diff) | |
NFS: Fix inverted cross-directory rename check
nfs_rename_is_unsafe_cross_dir() returns false for cross-directory
renames, causing nfs_rename() to skip nfs_sync_inode() even when
filehandles may expire on rename. Same-directory renames may instead
trigger unnecessary synchronization.
Current condition directly contradicts the function name/comments.
Return false for same-directory renames so cross-directory renames
reach the existing filehandle-volatility check. Keep the conservative
fallback unchanged..
Fixes: dcd21b609d4ab ("NFS: Avoid flushing data while holding directory locks in nfs_rename()")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'rust/kernel/alloc/kvec')
0 files changed, 0 insertions, 0 deletions
