Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1744166ybt; Sat, 27 Jun 2020 19:09:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2E30Q9zzPtI/viE7tUPYaBuFDhzsrwnNGRVRrIp3s+ozwBX+X3Z2Qgj8HZd91QD64DGlu X-Received: by 2002:a05:6402:128f:: with SMTP id w15mr11215986edv.240.1593310192283; Sat, 27 Jun 2020 19:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593310192; cv=none; d=google.com; s=arc-20160816; b=Aym1MycGLSZpKujjeLm17oc3K7fL0qxJgm7CFwDyWH5/uqyzPYbF4doY2EELfk/JrG BqJSHtSmaLRxim0LZNf1j1XYuJk9OC941w4xqTmr6PHc7Sacp+pW2GUI1ow34UKnAXov bsvjVoBPr3OZ+WR02z4LLT7fT2razakduNpe0BGSmv93dwraLI+DJJc9nwHIYJ2k8g5h 6f2KDuAs+QO0IX3RlQMhH8jNOKo2IyF8hwM+L/NISrbVRBMp9Temhxd4V5Su6BsLjgqt X4lj/v6RF4byq3ZGV/KMU6FCQkzrXOE5pZS1HC3tuOPvcbpyOIWX9YluR7MKY8gf+2oM bf4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=c8nReI1Wq65+cBl0Is0UTaE8SaNAUDiOZg/O3aQn/qM=; b=kf+loU78ilp9tfC+S/MMUa1wOFGS1OAsjZFU1lBT6D27DG6eoWtq2TKHS2gWKidZoM X+HbsDvVwJY8ATiFX/LB8kJlfZGwjOGIJisXP8WUUJ0PtnHLJjC0qsVv0q3YFejhvO8b EnAse/2nd9nSsLGRNHtaFxrMes5fbcQbm9jtCzeReWci9U4aTVasrS4h1djcupKYlCym y9tckxW9mBVJTiKvazhnhMnD73rGR7JGAAA8MvC6+0RJVgp2DA0h8ieF/NKjtm8r+402 5ZCnmMBGBdeF4N6R9FutR1RBOtrA7McdMI+5bGoHHJt0e4hMksmds0gR9+NkWfRfcyYJ 6aZg== 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 z89si5451155ede.516.2020.06.27.19.09.29; Sat, 27 Jun 2020 19:09:52 -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 S1726537AbgF1CG3 (ORCPT + 99 others); Sat, 27 Jun 2020 22:06:29 -0400 Received: from foss.arm.com ([217.140.110.172]:58178 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbgF1CG1 (ORCPT ); Sat, 27 Jun 2020 22:06:27 -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 631F813A1; Sat, 27 Jun 2020 19:06:27 -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 4BE2B3F73C; Sat, 27 Jun 2020 19:06:24 -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: [RFC PATCH 2/2] 9p: remove unused code in 9p Date: Sun, 28 Jun 2020 10:06:08 +0800 Message-Id: <20200628020608.36512-3-jianyong.wu@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200628020608.36512-1-jianyong.wu@arm.com> References: <20200628020608.36512-1-jianyong.wu@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These code has been commented out since 2007 and lied in kernel since then. it's time to remove thest no used code. 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