aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-06-24 10:29:04 +0200
committerChristian Brauner <brauner@kernel.org>2025-06-24 13:00:09 +0200
commitcc678bf7aa9e2e6c2356fd7f955513c1bd7d4c97 (patch)
treee41f0f134977ed03658d4ced49b387e166a0b596
parentpidfs: fix pidfs_free_pid() (diff)
downloadlinux-cc678bf7aa9e2e6c2356fd7f955513c1bd7d4c97.tar.gz
linux-cc678bf7aa9e2e6c2356fd7f955513c1bd7d4c97.zip
fhandle: raise FILEID_IS_DIR in handle_type
Currently FILEID_IS_DIR is raised in fh_flags which is wrong. Raise it in handle->handle_type were it's supposed to be. Link: https://lore.kernel.org/20250624-work-pidfs-fhandle-v2-1-d02a04858fe3@kernel.org Fixes: c374196b2b9f ("fs: name_to_handle_at() support for "explicit connectable" file handles") Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Cc: stable@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r--fs/fhandle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fhandle.c b/fs/fhandle.c
index 3e092ae6d142..66ff60591d17 100644
--- a/fs/fhandle.c
+++ b/fs/fhandle.c
@@ -88,7 +88,7 @@ static long do_sys_name_to_handle(const struct path *path,
if (fh_flags & EXPORT_FH_CONNECTABLE) {
handle->handle_type |= FILEID_IS_CONNECTABLE;
if (d_is_dir(path->dentry))
- fh_flags |= FILEID_IS_DIR;
+ handle->handle_type |= FILEID_IS_DIR;
}
retval = 0;
}