Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1743011ybt; Sat, 27 Jun 2020 19:06:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws7jabaWW5IGJxXM44no5GqnhHnRdzy2AO8xyqTCmrSgSFbkP8qyoudi4vVMADOIRRqtiU X-Received: by 2002:a17:906:7802:: with SMTP id u2mr8867205ejm.478.1593310015919; Sat, 27 Jun 2020 19:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593310015; cv=none; d=google.com; s=arc-20160816; b=l8RFIBOiSzCNWu36MBHE+Ums1abI5ZW89voUrDM4KA3Um29q8rpRdxCB7n7iYdEnuU UyOx+aByRyY3hKru4cCvRVbFPnIZt6TNDAMTbYKJQUrimp2dHHmv1o8xedPNSpLBLULT ERFfrIWBr1B1xLOxam6soib+eQC88R4DFM9pvcJSPr0KxPZbKbfyNxVcPVU6wmxEv7fG 1rC2B6jiReH0yFNrh5JdmTrPICU0SsQyyEN0SzPT6LjBMlOrxFVsZVm79x8fdQkuTOV5 W0biDZFUXYzeO91weRCiUIkAw+ug46ogZXqKdGBlDm3buqHcS6HzeHTCw2xukSFWRD/M FOAw== 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=xhX4Ka8GJDG4OzmU+49u2tiopN2DXl+Uoor2V5UK2k8=; b=EhT2YgX1pb6TS3gjRpELiK7PJ6b3gIapyMfI8q5MCSEL6GEhuTXKnu0t+VSgdLmL8h 0G5jASQjvwT+6r7vOIfcey7Q3XNCER4bdNaOSZtkHvVUWAxxQIkTY3FqtfNluUBZ9/03 VUGRnKCQXxl0qq8h91uUGABTuUUzmW/BwwOUrlkg/D8/OW3/QUSRmPAzu0EzAIdLwK5Z pSfNadSomNyDP7Gt1OqKgvJTtlcpEg9642vzqMMoXoOF5j8G5VWuYP6hQXI7zzncqt46 XJbhC8/U4mKrdfnx2Heysaow3Jzqdp1/T9xyupZ7ZJZpeRAPxCI5Ir9hl/GaKzbowJJr WUzg== 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 x6si2022882edr.185.2020.06.27.19.06.30; Sat, 27 Jun 2020 19:06:55 -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 S1725963AbgF1CGV (ORCPT + 99 others); Sat, 27 Jun 2020 22:06:21 -0400 Received: from foss.arm.com ([217.140.110.172]:58142 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbgF1CGU (ORCPT ); Sat, 27 Jun 2020 22:06:20 -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 32D08106F; Sat, 27 Jun 2020 19:06:20 -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 0EE2B3F73C; Sat, 27 Jun 2020 19:06:16 -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 0/2] 9p: retrieve fid from file if it exsits Date: Sun, 28 Jun 2020 10:06:06 +0800 Message-Id: <20200628020608.36512-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 in the current implementation in setattr in 9p, fid will always be retrieved from dentry, which may be against the original intension of user and lead to bug. also, remove no used code in 9p. Signed-off-by: Jianyong Wu Jianyong Wu (2): 9p: retrive fid from file when file instance exist. 9p: remove unused code in 9p fs/9p/vfs_inode.c | 58 +++--------------------------------------- fs/9p/vfs_inode_dotl.c | 5 +++- 2 files changed, 8 insertions(+), 55 deletions(-) -- 2.17.1