Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp700539pxu; Wed, 14 Oct 2020 11:21:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvcub+oI8WxWVByftn/KKMeyXAYo9+K5aMhnIg9HoIjjXkCyTaU7noVeFH/Tly9rX0vODl X-Received: by 2002:a17:906:1107:: with SMTP id h7mr294497eja.481.1602699717797; Wed, 14 Oct 2020 11:21:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1602699717; cv=pass; d=google.com; s=arc-20160816; b=iuRCZJNvNBPkcr7Uu+6U933eApkA7SJRtT0R+DebRew7CQqeG3YA6EvdoK5OTbPmlo 1+dnueTlV7/Cs5b2EMKU4DbugmYuL2QJaDu3MKdzKKvMa7Djpq3WTntT2xsqeBLXyKfN lnUYTggjXOojqkNGG4GAp+AMyJ0uPe+E2K/gmpBC7BuC46MCyrqSj+u+wi4w6XJOyQxp 3xOX/ZOgOCgQyzyNL9oXK52bO0gzttRWnvO0POQFHxkZEPQAq76pbcCYMk6EkIHCKHxZ oejQ4lVlfymrE/KwJcEmBosSdDUAwXoLcDATj/NlQXaV4PJtQuU7EZmQnrDNoMwXUFUP pQZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=vuwuZ7Ow/70Tk/xZiDO3Y9Yb6RbPkbqSK2pMVmeaWJA=; b=cNTmMKEWN3G/K13kQ9ISZdy7XIYDRHW2rdKAvBe44vT8ImE3uwA9FCsdfdOamJn27V WCzZFPqVSzmzWGKgBJ0/42bMhGIRbOs3xFa/sYb6H902rMa95K+CUb6rEvqbfCfiOre2 VV+6PkCLwDgP0zmAPZ+KyIDlG6QK7TwZPc4FcWK5tw4iNCzc+VtP1QHrWmM3IAWsDEAr 6xp9Ya+Ra3KwU8dHOVYrEDjcEBGeDTuwJQOlZn7Xd3c5YuxF3Gjcvj36CT8dVniql1kh 1A3HTGuKyRuKZAZT7Fbsc1thPupSdcW2lJsRkqJxfh+2wx5s5hxHc7eUVgoS65Btj8J2 VOnQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=VO+gIhrp; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si250032ejw.432.2020.10.14.11.21.24; Wed, 14 Oct 2020 11:21:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=VO+gIhrp; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387797AbgJNSRN (ORCPT + 99 others); Wed, 14 Oct 2020 14:17:13 -0400 Received: from mail-co1nam11on2104.outbound.protection.outlook.com ([40.107.220.104]:48793 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727114AbgJNSRN (ORCPT ); Wed, 14 Oct 2020 14:17:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mJeZR1HxidMhgpNRdxG0LVsqh/+HY5uwutt4QFbyTry7zaKLc4pam+0a6IKjIz5Yn+XQtnbThXTRwD92yKA0VmhhDliaNVbCnl9carAfShJCbRkJ9lt47yWvRh7voRbvLMPKQ3t9bmKH7Pt7PJ5oj0DDlzdIyziCbSrWEGGoZQKzkDW3G2e6amL1KS2KQtyE8QgpWmpC3N2j4dcuuBL24kx7PQwcUDL62UwwLyrfELKP+TYEaR24TeJLBx+EEob6kgi8UhZEMvaf010R6VnNUzruJ7o9CISofLkVr0Z8ct1A3w5rTd4hrmfBYPhXqRFgjDeX4SloIFF+Jx2CvZazcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vuwuZ7Ow/70Tk/xZiDO3Y9Yb6RbPkbqSK2pMVmeaWJA=; b=efXCbujDDcDhKBZXd5ts9cTjJ/L54trMS748bvpxIde8jUHSGwWzEdMU7N+vm86PuOXUcCb6tTnPVmUFTIHzbZhwcxd/pqJM8oKX267qkcke8MNlIWj+Y8HvBR52xH4vrtXrb8xv6OGGIjYQ0v/rnF9GqJ9p9+OBUXmCqiXryEEnrkJMnZTgvDXSlZGw9VPemJnp+P+8Pw9msU2hKENMF9dZ9d/naOxWAUi+TwNoYilWo1T0AG61zeeeUJ7mZnsx4QkvJ0qCiuxl4o6yIH+zZaVsH9ZZqV/EPaXtpmb5Lo1TsXElzcdJwRRYp22O29wguYwCDM+Wz3/FMut+N6nMwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hammerspace.com; dmarc=pass action=none header.from=hammerspace.com; dkim=pass header.d=hammerspace.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vuwuZ7Ow/70Tk/xZiDO3Y9Yb6RbPkbqSK2pMVmeaWJA=; b=VO+gIhrpWOVj3dpcUxTTWZHZ9WyhgSgCYsqaZM5F5F+yM+P77g6ICWJnwJINmK/WUKtJC7AqNwqrzX5MGccUN9p5D4g86suPjy3vweq5paUlW9fX3Huu5PYr/hX9EuUwDmpU3IpXy0dFsaRyb1x8S0K9ifCjfXmTMsrmnjfV600= Received: from MN2PR13MB3957.namprd13.prod.outlook.com (2603:10b6:208:263::11) by MN2PR13MB3664.namprd13.prod.outlook.com (2603:10b6:208:19f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.11; Wed, 14 Oct 2020 18:17:10 +0000 Received: from MN2PR13MB3957.namprd13.prod.outlook.com ([fe80::e8a1:6acc:70f0:ef39]) by MN2PR13MB3957.namprd13.prod.outlook.com ([fe80::e8a1:6acc:70f0:ef39%7]) with mapi id 15.20.3477.019; Wed, 14 Oct 2020 18:17:10 +0000 From: Trond Myklebust To: "ashishsangwan2@gmail.com" CC: "stable@vger.kernel.org" , "linux-nfs@vger.kernel.org" , "anna.schumaker@netapp.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] NFS: Fix mode bits and nlink count for v4 referral dirs Thread-Topic: [PATCH] NFS: Fix mode bits and nlink count for v4 referral dirs Thread-Index: AQHWm/OGeyO0BuEaoUK9JXx6hV8a+KmXdI6A Date: Wed, 14 Oct 2020 18:17:10 +0000 Message-ID: <2d1ff3421a88ece2f1b7708cdbc9d34b00ad3e81.camel@hammerspace.com> References: <20201006151456.20875-1-ashishsangwan2@gmail.com> In-Reply-To: <20201006151456.20875-1-ashishsangwan2@gmail.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=hammerspace.com; x-originating-ip: [68.36.133.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 933ea864-fc25-4606-4177-08d8706d5e26 x-ms-traffictypediagnostic: MN2PR13MB3664: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2958; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xENKoglYRxSlqiZQNYThvFgmovMqelpij45DZg2UVWVTt9ejAzwDqqFvnSvLiw9TBAwPaJ5fVm+UIeCHtNoN5WnN+klk9MdzmQvdeZ0vALCWfVfcC8dq7+9DGwE2qryf0G2py0vA7ys96TfAhTOmY4zTbvaRelpOCk4nn3wGbiRwJVt6CNztIsWJR+kOO1HPtqFJuZJbWibR1ACCLJx+664rU1uo4ExmrZhy1TAPLkDK7xnmP651Befk/cx4eK1Q33E2nv8/0zOxofFFPJlbPbdYIFKDQOIEq1DBPwiE1KHkUYI2VKCiHtCqGu6S2Ypbdw9uhJQ2WgLZmW/OTczW4w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR13MB3957.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(366004)(376002)(346002)(396003)(39840400004)(6512007)(478600001)(36756003)(26005)(76116006)(66446008)(66946007)(66556008)(6506007)(71200400001)(66476007)(186003)(91956017)(64756008)(6486002)(2906002)(5660300002)(86362001)(4326008)(8936002)(54906003)(2616005)(6916009)(8676002)(316002)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: DGCEdl/E6g+mz54uuOY96gdSvzx1qvLj/R1X2K9jQ6j2WxwYWwaJPf3wIBUpuiuwP5257fZwxRJsmojsEFaN5fPEZ/rc1buc5x3F2C74ead6Yorq3n8WY4P53cZQBa/JAbMdGpvdWqq+241FBChSTU3lbhTiA92ehEEzy2l2C72rBeedBD/Ap3vMpjm7NcgvMw07i4o/xQaQInmsweU41R7sbSU9wv9EyO5aNn90DTynA36PWLaHSkI6oTVLqFPp/glV93vPwQrC7/5PkVMtOAIr/JrMMJ48i7AcyWI1XDNowUMvdU//8c3PM4FyxwS3nCKc6/cFWH5opUSFmCQvQl4tjw8UrxJJ6ZGb6+QvyAy2KRDxRd/dHFzH8HjCEZc9fv/TtahDtjW66MKGmWWQciXxvEobxnP+5FoY65VYUa3H7utdT8OZc/gZzYMqgq0CitrtrxfUzebzrTPfJvSX/pTSHfHSIJQaS9k9aeKLM+UFJVXAmg9BPPux3yUYRJ8AnYprdllZT4BgaKQoIcjqdcEFKC3gpKAKyZpaDGixE8AstWP90mJFPLqRRaRPf1Mkwpi82KQRS+XjSz8SBHGgnEqOqPrEQVmChQ2zLsjzhYjAx0NrO5xLqmYSWHvn88RRAGvFujo/wzOgVmiJ2QhtjA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <3ED7695FE3950145B1706F4287A85DA5@namprd13.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR13MB3957.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 933ea864-fc25-4606-4177-08d8706d5e26 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2020 18:17:10.5878 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GLcssNSdHlNX/8+irl7sd17Bm9YsLKR3Ha94WUDElKCXawiumR6meFD5FAxPQvWty5IUgJwD3yc/MRki3IkTGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB3664 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gVHVlLCAyMDIwLTEwLTA2IGF0IDA4OjE0IC0wNzAwL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