From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E984AC10F13 for ; Thu, 11 Apr 2019 23:18:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B19C821872 for ; Thu, 11 Apr 2019 23:18:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555024713; bh=2LHl3d1QaSVINUfhnW4qIPPavHoMqFMCbbZXxHJaSLE=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=Hs7hrL+q7JirIF1f8C5AA05QaX26vlA0HeIgC6GgZ2g5hrmXiU1dsSMbAeJWCkP4p DQ44yAppjTRhH+Jg2rxxfQpZWd6z+GKx3kuruOJHuGkw9tHEb28NrCBcvTD6elMBeA rJ65J4v3d0pvFpc2ryi5sWlEsl6uFgiM5MAwMDds= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726797AbfDKXSc (ORCPT ); Thu, 11 Apr 2019 19:18:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:32950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbfDKXSc (ORCPT ); Thu, 11 Apr 2019 19:18:32 -0400 Received: from ebiggers-linuxstation.mtv.corp.google.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A146321871; Thu, 11 Apr 2019 23:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555024711; bh=2LHl3d1QaSVINUfhnW4qIPPavHoMqFMCbbZXxHJaSLE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GLLOVDWP6ZfOUawBUFnnD821sPEuTw2IZ7WVaGb4ko1ngatNBMz+cktJvbIJw/oDn Il3MfQo3V5Dyg5oxpiQxz5Cpg4BU98mHUKCR1u0Qy7bBkZIfsLjD2MPndScM/cQh2D pNKuKpqk55RqIn2ObqjfeFZJ6mJO1Gfs2M5wiNcc= From: Eric Biggers To: linux-fsdevel@vger.kernel.org, Al Viro Subject: [PATCH 4/4] libfs: document simple_get_link() Date: Thu, 11 Apr 2019 16:16:30 -0700 Message-Id: <20190411231630.50177-5-ebiggers@kernel.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190411231630.50177-1-ebiggers@kernel.org> References: <20190411231630.50177-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org From: Eric Biggers Signed-off-by: Eric Biggers --- fs/libfs.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fs/libfs.c b/fs/libfs.c index 0fb590d79f30e..5f74a98729742 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -1167,6 +1167,20 @@ simple_nosetlease(struct file *filp, long arg, struct file_lock **flp, } EXPORT_SYMBOL(simple_nosetlease); +/** + * simple_get_link - generic helper to get the target of "fast" symlinks + * @dentry: not used here + * @inode: the symlink inode + * @done: not used here + * + * Generic helper for filesystems to use for symlink inodes where a pointer to + * the symlink target is stored in ->i_link. NOTE: this isn't normally called, + * since as an optimization the path lookup code uses any non-NULL ->i_link + * directly, without calling ->get_link(). But ->get_link() still must be set, + * to mark the inode_operations as being for a symlink. + * + * Return: the symlink target + */ const char *simple_get_link(struct dentry *dentry, struct inode *inode, struct delayed_call *done) { -- 2.21.0.392.gf8f6787159e-goog