Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1880663ybt; Sun, 28 Jun 2020 00:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZLmNC4gAA0MoTWU2WtTGcmv4MaNUw0wVpqIDwsw+Ez6LcMDsVi4cWV4psqcOZMxoGYw0V X-Received: by 2002:a17:906:3041:: with SMTP id d1mr9558368ejd.7.1593330378563; Sun, 28 Jun 2020 00:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593330378; cv=none; d=google.com; s=arc-20160816; b=wQ5gFUTxSSCCyhtnzwKYQPfEPAmOFmhBDDxlVFKPQ3tUAU/mkqvVw5T3K52zJT04Vb WIB2SYT/+jqVI2nJgkTeubLOXAXtgImAwqPkh3Aqqb+Y0hXVKTTwKzbqqCBGCgBe66DL jj0lArcItrB0HqUYz7Uv2kYZQecRjEg5VLMgyY3CT3mKFO0rb+ptQRh+sD4vWqRXHjQW 4ZWBbnXfGTDNE7r1o9L+A+XutILPSu0X0z82svnwCWR5b/hFDBvC41lSwkXJQiPwkDBZ DLGvYGTc0eOZni1YNSWLBy4yie2xRvmKKcG9VmjOsQq/Rcs+89Q1Pycg7xPzsZ/wfR8S SsAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=ae4xFFGWCPC1GFSgqCSn99RiXuokCY0oCgVwoLbCEeo=; b=I9BWOnlQSVYudhti2nseb12SZ0eQ+IBivJtUgbEX8r6R3A/1ePzPnQmbuCjgTffL7N ANeozLa9Ynk1+HRPeJ1+Poe8ICTN4KNwTc2IvRtLn+h1qRHytduLwZTF55/aRXYqAaym e2sEaYD2/6BOADd6N2LdWFLA8n1q7g5hOtWzX7FtW128JC8JPbZsfIxp76tW6gl8fHfb Imwo90/xwz01GRWTyqIbw/kZdwJ0eGbaZNMWz7c8UkOWxzXkXIGWIxm1JNfFAc34z9Ww PpSwhx9ip8jtQpRN9PJIUHhFNhkOcRpbYtFMU8TBZh/CcUQEPTpXZGBZrxx4lRPgUkhL KQDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si5934717edn.462.2020.06.28.00.45.56; Sun, 28 Jun 2020 00:46:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726069AbgF1Hnt (ORCPT + 99 others); Sun, 28 Jun 2020 03:43:49 -0400 Received: from foss.arm.com ([217.140.110.172]:59688 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgF1Hns (ORCPT ); Sun, 28 Jun 2020 03:43:48 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2E6F9D6E; Sun, 28 Jun 2020 00:43:48 -0700 (PDT) Received: from entos-d05.shanghai.arm.com (entos-d05.shanghai.arm.com [10.169.40.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0FC1D3F6CF; Sun, 28 Jun 2020 00:43:44 -0700 (PDT) From: Jianyong Wu To: ericvh@gmail.com, lucho@ionkov.net, asmadeus@codewreck.org, v9fs-developer@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org, Steve.Capper@arm.com, Kaly.Xin@arm.com, justin.he@arm.com, jianyong.wu@arm.com, wei.chen@arm.com Subject: [PATCH] 9p: remove unused code in 9p Date: Sun, 28 Jun 2020 15:43:37 +0800 Message-Id: <20200628074337.45895-1-jianyong.wu@arm.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These codes have been commented out since 2007 and lay in kernel since then. So, it's better to remove them. Signed-off-by: Jianyong Wu --- fs/9p/vfs_inode.c | 53 ----------------------------------------------- 1 file changed, 53 deletions(-) diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 010869389523..23aed9047efe 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -368,59 +368,6 @@ struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev) return inode; } -/* -static struct v9fs_fid* -v9fs_clone_walk(struct v9fs_session_info *v9ses, u32 fid, struct dentry *dentry) -{ - int err; - int nfid; - struct v9fs_fid *ret; - struct v9fs_fcall *fcall; - - nfid = v9fs_get_idpool(&v9ses->fidpool); - if (nfid < 0) { - eprintk(KERN_WARNING, "no free fids available\n"); - return ERR_PTR(-ENOSPC); - } - - err = v9fs_t_walk(v9ses, fid, nfid, (char *) dentry->d_name.name, - &fcall); - - if (err < 0) { - if (fcall && fcall->id == RWALK) - goto clunk_fid; - - PRINT_FCALL_ERROR("walk error", fcall); - v9fs_put_idpool(nfid, &v9ses->fidpool); - goto error; - } - - kfree(fcall); - fcall = NULL; - ret = v9fs_fid_create(v9ses, nfid); - if (!ret) { - err = -ENOMEM; - goto clunk_fid; - } - - err = v9fs_fid_insert(ret, dentry); - if (err < 0) { - v9fs_fid_destroy(ret); - goto clunk_fid; - } - - return ret; - -clunk_fid: - v9fs_t_clunk(v9ses, nfid); - -error: - kfree(fcall); - return ERR_PTR(err); -} -*/ - - /** * v9fs_clear_inode - release an inode * @inode: inode to release -- 2.17.1