From patchwork Mon Sep 12 19:29:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 9327887 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AC6EF6077F for ; Mon, 12 Sep 2016 19:34:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F46728E59 for ; Mon, 12 Sep 2016 19:34:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9429E28E93; Mon, 12 Sep 2016 19:34:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A69B28E59 for ; Mon, 12 Sep 2016 19:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932666AbcILTeB (ORCPT ); Mon, 12 Sep 2016 15:34:01 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37039 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758132AbcILT3b (ORCPT ); Mon, 12 Sep 2016 15:29:31 -0400 Received: by mail-wm0-f41.google.com with SMTP id c131so75116132wmh.0 for ; Mon, 12 Sep 2016 12:29:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dy+WHlYUU+lZGST4ZzIYnkIlZb86kHnVyeUbVGgWzvI=; b=cRrEYccFV8f6eNgIR3jN2F2eZc2ovXumYKZMaLTjVLEhebdMl9QaKZ4ToJ7NCNYRNP Z4E6ODipbD772FQcUVA/qpOJ580JIJTJYKtNitkAjaqv6XxXf1jmiN7RboCh4xpuvMU/ Whmr5wKWANAaDbYjr5q+hBfck6ZaNkZ1jXPRDTgo0Fkx6UG2BQB9xZXmLrT4hYuQWzHz 4SLCAg0gYuMxgXmgx3IQ3J4ml6lBKFdOKQB34tsUozKQ3XcR36PYKv6KSfH9Cda2g05N tevcqOuRlyMXkRmTlupRN/coctLPLBL5hnNjoS1sxLXhCbmCMZLB/kuzPeXUpbrGxRkj o8Dg== X-Gm-Message-State: AE9vXwMvnohxQ7t9HRTEm9yTinylb5DRIomgwjWgjT5XxfBiqdxbLbjvVG4MBh5bBngtMkvt X-Received: by 10.194.233.102 with SMTP id tv6mr3914616wjc.35.1473708570085; Mon, 12 Sep 2016 12:29:30 -0700 (PDT) Received: from veci.piliscsaba.szeredi.hu (pool-dsl-2c-0018.externet.hu. [217.173.44.24]) by smtp.gmail.com with ESMTPSA id f8sm19250418wjh.45.2016.09.12.12.29.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Sep 2016 12:29:28 -0700 (PDT) From: Miklos Szeredi To: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Al Viro Subject: [PATCH 06/17] vfs: remove page_readlink() Date: Mon, 12 Sep 2016 21:29:08 +0200 Message-Id: <1473708559-12714-7-git-send-email-mszeredi@redhat.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1473708559-12714-1-git-send-email-mszeredi@redhat.com> References: <1473708559-12714-1-git-send-email-mszeredi@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove this unused helper (sole previous user was AFS). Signed-off-by: Miklos Szeredi --- fs/namei.c | 11 ----------- include/linux/fs.h | 1 - 2 files changed, 12 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index adb04146df09..c06a68b82088 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -4713,17 +4713,6 @@ void page_put_link(void *arg) } EXPORT_SYMBOL(page_put_link); -int page_readlink(struct dentry *dentry, char __user *buffer, int buflen) -{ - DEFINE_DELAYED_CALL(done); - int res = readlink_copy(buffer, buflen, - page_get_link(dentry, d_inode(dentry), - &done)); - do_delayed_call(&done); - return res; -} -EXPORT_SYMBOL(page_readlink); - /* * The nofs argument instructs pagecache_write_begin to pass AOP_FLAG_NOFS */ diff --git a/include/linux/fs.h b/include/linux/fs.h index 901e25d495cc..5448a9b88c41 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2890,7 +2890,6 @@ extern const struct file_operations generic_ro_fops; #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m)) extern int readlink_copy(char __user *, int, const char *); -extern int page_readlink(struct dentry *, char __user *, int); extern const char *page_get_link(struct dentry *, struct inode *, struct delayed_call *); extern void page_put_link(void *);