]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
expfs: Fix exportfs_can_encode_fh() for EXPORT_FH_FID
authorJan Kara <jack@suse.cz>
Wed, 1 Oct 2025 13:19:07 +0000 (15:19 +0200)
committerJan Kara <jack@suse.cz>
Mon, 6 Oct 2025 12:26:50 +0000 (14:26 +0200)
commit48b77733d0dbaf8cd0a122712072f92b2d95d894
tree4a058f353ef1460a2234ff48afde7cd06f78c40c
parentfd94619c43360eb44d28bd3ef326a4f85c600a07
expfs: Fix exportfs_can_encode_fh() for EXPORT_FH_FID

After commit 5402c4d4d200 ("exportfs: require ->fh_to_parent() to encode
connectable file handles") we will fail to create non-decodable file
handles for filesystems without export operations. Fix it.

Fixes: 5402c4d4d200 ("exportfs: require ->fh_to_parent() to encode connectable file handles")
Reviewed-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
include/linux/exportfs.h