Commit 2b6da3fa authored by Chuck Lever's avatar Chuck Lever Committed by Greg Kroah-Hartman
Browse files

shmem: Fix shmem_rename2()

[ Upstream commit ad191eb6 ]

When renaming onto an existing directory entry, user space expects
the replacement entry to have the same directory offset as the
original one.

Link: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15966


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


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 753828d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment