From patchwork Fri Jun 29 18:57:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 1133181 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A36D8DFF34 for ; Fri, 29 Jun 2012 18:59:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932615Ab2F2S7b (ORCPT ); Fri, 29 Jun 2012 14:59:31 -0400 Received: from mail-yw0-f42.google.com ([209.85.213.42]:40749 "EHLO mail-yw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932777Ab2F2S63 (ORCPT ); Fri, 29 Jun 2012 14:58:29 -0400 Received: by mail-yw0-f42.google.com with SMTP id q11so4407178yhf.1 for ; Fri, 29 Jun 2012 11:58:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=mET4U9ywS0EIoWqFKNVHSh4yByFozOzzFp4JroQg6kQ=; b=b6lOg8TFZubUxPnUXef53/Np3ypk5xjpTTb3sgk7qb3mmsEswZFhDBmyt7zUgM+52O a7CEIp6IjoSOOjSQvh+UefrcX6gDQUzEjzKAy5eA3398pv6bY1/+lzRN/Plv1yN44HTV V0erqPEaJ12153zQbURQq4upVbzQ6dtBnLjDaumBpqpRkPW/VxxDcTXXirvFc17dw8N3 KBQbYWURvaZ7d7sgE2e2EIXznFxJgkthXkXk0/uhWDVfolpSS8c8iN6OdSR7JVXXRcn9 ld8SkKy1WhKCC3AluagkQTpCKpGhY2jiX7ZfhDf7ckdr/NwWGk7MOG+S4LmrpNxwSxRB QcmA== Received: by 10.236.146.97 with SMTP id q61mr4432580yhj.113.1340996308842; Fri, 29 Jun 2012 11:58:28 -0700 (PDT) Received: from salusa.poochiereds.net (cpe-076-182-054-194.nc.res.rr.com. [76.182.54.194]) by mx.google.com with ESMTPS id l13sm3936309ann.2.2012.06.29.11.58.27 (version=SSLv3 cipher=OTHER); Fri, 29 Jun 2012 11:58:27 -0700 (PDT) From: Jeff Layton To: viro@ZenIV.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, michael.brantley@deshaw.com, hch@infradead.org, miklos@szeredi.hu, pstaubach@exagrid.com Subject: [PATCH v3 15/17] vfs: remove user_path_parent Date: Fri, 29 Jun 2012 14:57:58 -0400 Message-Id: <1340996280-27123-16-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1340996280-27123-1-git-send-email-jlayton@redhat.com> References: <1340996280-27123-1-git-send-email-jlayton@redhat.com> X-Gm-Message-State: ALoCoQlvdLCOPSyhGQYm/WTVdJwe020/cfzI2/YFvO0wvvSJCBqUe//takIZkk0Q6xIx/ckyFCsb Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org ...there are no more callers. Signed-off-by: Jeff Layton --- fs/namei.c | 18 ------------------ 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index b38d734..7c03af9 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1941,24 +1941,6 @@ int user_path_at(int dfd, const char __user *name, unsigned flags, return err; } -static int user_path_parent(int dfd, const char __user *path, - struct nameidata *nd, char **name) -{ - char *s = getname(path); - int error; - - if (IS_ERR(s)) - return PTR_ERR(s); - - error = do_path_lookup(dfd, s, LOOKUP_PARENT, nd); - if (error) - putname(s); - else - *name = s; - - return error; -} - /* * It's inline, so penalty for filesystems that don't use sticky bit is * minimal.