Commit 3e716f31 authored by Chuck Lever's avatar Chuck Lever Committed by Greg Kroah-Hartman
Browse files

libfs: Fix simple_offset_rename_exchange()



[ Upstream commit 23cdd0ee ]

User space expects the replacement (old) directory entry to have
the same directory offset after the rename.

Suggested-by: default avatarChristian Brauner <brauner@kernel.org>
Fixes: a2e45955 ("shmem: stable directory offsets")
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Link: https://lore.kernel.org/r/20240415152057.4605-2-cel@kernel.org


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
[ cel: adjusted to apply to origin/linux-6.6.y ]
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 307f68e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment