From patchwork Sat Apr 15 06:55:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9682153 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 31F2D601E7 for ; Sat, 15 Apr 2017 06:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 244DC24DA2 for ; Sat, 15 Apr 2017 06:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18F8728691; Sat, 15 Apr 2017 06:55:33 +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 A375524DA2 for ; Sat, 15 Apr 2017 06:55:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753425AbdDOGzZ (ORCPT ); Sat, 15 Apr 2017 02:55:25 -0400 Received: from mailrelay111.isp.belgacom.be ([195.238.20.138]:32374 "EHLO mailrelay111.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753268AbdDOGzY (ORCPT ); Sat, 15 Apr 2017 02:55:24 -0400 X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3A1yjJDhyhOaDsRMzXCy+O+j09IxM/srCxBDY+r6Qd?= =?us-ascii?q?0eoWIJqq85mqBkHD//Il1AaPBtqLra8cw8Pt8IneGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2TxTor3az9T8fHAnkfUow?= =?us-ascii?q?f7ytW92as8Pi/ua+4ZDMKyBPnia6Z/smJRauqC3Vt88Lkc5sLbs3xhLVo3xOPe?= =?us-ascii?q?NMyjU7C0iUmkPS782x9Zgr3T5dt/879sVDGfH0dq42ZadbHTIrLyY/6Zu45lH4?= =?us-ascii?q?UQKT6y5EAS0tmR1SDl2AtUmiUw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2D/AQCjwvFY/xWMtFtdHAELAQUBgmpqJ?= =?us-ascii?q?4FFjm6RFAGVNYIPIYV9BAKEAEAYAQEBAQEBAQEBAQFqKIIzBAEdAQSCaS8jKXE?= =?us-ascii?q?kE4oKEasFOoQQhzSGUoFdiwqCSgWdG5JYDZFGlAofOIEFQx0YhFoBglA+NYd5g?= =?us-ascii?q?U8BAQE?= X-IPAS-Result: =?us-ascii?q?A2D/AQCjwvFY/xWMtFtdHAELAQUBgmpqJ4FFjm6RFAGVNYI?= =?us-ascii?q?PIYV9BAKEAEAYAQEBAQEBAQEBAQFqKIIzBAEdAQSCaS8jKXEkE4oKEasFOoQQh?= =?us-ascii?q?zSGUoFdiwqCSgWdG5JYDZFGlAofOIEFQx0YhFoBglA+NYd5gU8BAQE?= Received: from 21.140-180-91.adsl-dyn.isp.belgacom.be (HELO localhost.localdomain) ([91.180.140.21]) by relay.skynet.be with ESMTP; 15 Apr 2017 08:55:17 +0200 From: Fabian Frederick To: Andrew Morton Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, fabf@skynet.be Subject: [PATCH 1/1 linux-next] fs/affs: remove node generation check Date: Sat, 15 Apr 2017 08:55:11 +0200 Message-Id: <20170415065511.13919-1-fabf@skynet.be> X-Mailer: git-send-email 2.9.3 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 node generation has to be stored on disk. AFAICS we won't be able to manage it on AFFS. This patch removes relevant check in affs_nfs_get_inode() Signed-off-by: Fabian Frederick --- fs/affs/namei.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/affs/namei.c b/fs/affs/namei.c index b02da4d..d9a40b5 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c @@ -478,11 +478,6 @@ static struct inode *affs_nfs_get_inode(struct super_block *sb, u64 ino, if (IS_ERR(inode)) return ERR_CAST(inode); - if (generation && inode->i_generation != generation) { - iput(inode); - return ERR_PTR(-ESTALE); - } - return inode; }