···737737738738/**739739 * rpc_unlink - remove a pipe740740- * @dentry: dentry for the pipe, as returned from rpc_mkpipe740740+ * @pipe: the pipe to be removed741741 *742742 * After this call, lookups will no longer find the pipe, and any743743 * attempts to read or write using preexisting opens of the pipe will744744 * return -EPIPE.745745 */746746-int747747-rpc_unlink(struct dentry *dentry)746746+void747747+rpc_unlink(struct rpc_pipe *pipe)748748{749749- simple_recursive_removal(dentry, rpc_close_pipes);750750- return 0;749749+ if (pipe->dentry) {750750+ simple_recursive_removal(pipe->dentry, rpc_close_pipes);751751+ pipe->dentry = NULL;752752+ }751753}752754EXPORT_SYMBOL_GPL(rpc_unlink);753755