linux/fs/nfs/blocklayout
Al Viro 19a6314a99 rpc_mkpipe_dentry(): saner calling conventions
Instead of returning a dentry or ERR_PTR(-E...), return 0 and store
dentry into pipe->dentry on success and return -E... on failure.

Callers are happier that way...

NOTE: dummy rpc_pipe is getting ->dentry set; we never access that,
since we
	1) never call rpc_unlink() for it (dentry is taken out by
->kill_sb())
	2) never call rpc_queue_upcall() for it (writing to that
sucker fails; no downcalls are ever submitted, so no replies are
going to arrive)
IOW, having that ->dentry set (and left dangling) is harmless,
if ugly; cleaner solution will take more massage.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2025-07-02 22:44:55 -04:00
..
blocklayout.c nfs/blocklayout: Limit repeat device registration on failure 2024-11-28 12:55:32 -05:00
blocklayout.h nfs/blocklayout: Fix premature PR key unregistration 2024-07-08 13:47:27 -04:00
dev.c nfs/blocklayout: Don't attempt unregister for invalid block device 2024-11-28 12:55:32 -05:00
extent_tree.c
Makefile
rpc_pipefs.c rpc_mkpipe_dentry(): saner calling conventions 2025-07-02 22:44:55 -04:00