Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1127826rwd; Wed, 7 Jun 2023 11:22:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XgNsbCglyHKXheVo6AS4uI02peYK6c/hAXXoeHp4ojxSEAU3H+D8329EBQ+2soYxvhGMR X-Received: by 2002:a17:90a:1908:b0:259:3fe2:e78f with SMTP id 8-20020a17090a190800b002593fe2e78fmr2552867pjg.4.1686162133128; Wed, 07 Jun 2023 11:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686162133; cv=none; d=google.com; s=arc-20160816; b=T470djPrLk+SMYVM/8QK7AWOfu/ADJZP9z1NS3z1gKiCcwIBWUYcNAdXf9skBAjTr3 gMdh84EMbgNnlSHQKuj0bj99Xo2FQr+mA1cygKDyhsZDWU5fl/s00IlbiBhxaVd42kT1 cXSSKRbzPo5ARVKQqTh4jIeIEx7NnqKQyR4GcULTzSRDYzRb+LbAZek94UqglyaEI/by xuffJyFCO/QXF0PFu8YXsZG8Ob5e2fnhTkFi0UJHbwl/l+1JI5K46KugC0kRsq6IzZjz MWiPycwVY6xIYF/3KsOyrdq/f17dCGMTAP0rM7CORnyQudVtf3QdaGBa2cRFEmD5ilZh T3Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=U9FNme5iBEpufhowdmn6D6u4P9E81AUlwyvYSH4GMyo=; b=HrYOgpio7cXgixhVmr2ZXpgR0JcGm9UuRqqc2UA8zIaOivYlmhOrPFSkqG8dB1rjCu r4b9Jyf5Tbjo/VMT/QGnJ7RldBNcR2Ld/5OH2gOwbOGX+1Ama8TnZd3G9w8jADq/btop b6L3HLkBLtnJSjtQh63qoFekeEWlz5Q3zMPp1AXKHZsdsz8Zdlt9xJIZlDtsWt7L2DUh 9RvfDS8j53/2WS3HJTPWb5cwU5eDu52BMX0FVX6MCamBN+57WEzqhsrNeEheEjQ/zjGF sJJg8hnaWkpU0ucmNPw2VKZOkLi4fg6S5Whk20mMYpgNCXC4YfKYSjVqoJ7VaEFOz7p6 9g5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Tbzw2iEY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a631258000000b0053fc26c8ef1si9075978pgs.70.2023.06.07.11.21.57; Wed, 07 Jun 2023 11:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Tbzw2iEY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232645AbjFGSL1 (ORCPT + 99 others); Wed, 7 Jun 2023 14:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232561AbjFGSLD (ORCPT ); Wed, 7 Jun 2023 14:11:03 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A45C72111 for ; Wed, 7 Jun 2023 11:10:52 -0700 (PDT) Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 3B9233F14A for ; Wed, 7 Jun 2023 18:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686161451; bh=U9FNme5iBEpufhowdmn6D6u4P9E81AUlwyvYSH4GMyo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Tbzw2iEYOGaykfz+CHs4otX32ABoUa4aOXiNJWE/cvovRCndVcL3wgazA63ztKE3U OpFG23mG40xWCvrwVPbNiVlbId705nqEK9i2p/5h6QJvEE////AmyANhkrCwOdB2qt 1cbgTb9X8+n+gluZOsEAINFc9tvck6Q0kCyjbIstBPq//DsEKU8QuuDqHXNb1pxwYx ZgR64KWLHFCvywt4RsqZye06pbfX0kvyaMRzZin028c10Fq9Q9h+oS/MyIbjxxzKFq 8fZC2sYzwts9lPnwyw7w3uxiVsvSdwybtk7u/dTmjH2mqksCJRqVcRWidb3ZLhWl0D Pq1IxEpA7fuSg== Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-94a355c9028so626576066b.3 for ; Wed, 07 Jun 2023 11:10:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686161451; x=1688753451; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U9FNme5iBEpufhowdmn6D6u4P9E81AUlwyvYSH4GMyo=; b=LLiLuvMVZZLGCIwT0lkismyUv1+HJTFuXbPXRt2Huq6KR/juEO1lMPxpduNMxaIelJ /cxMWMeumGhTnNUvkGAUakZYSbknd4z903hH6WHtho2XHDHXPrnoLAFBPx3fsVtBNCkt si3c0PSk8UJcF2vd2akBS8+WqyctmjmBaI61BKr7lxTyN2Yq5SDv00KYDfJhbEZr3JHb Tsv0BACZrkbUorXWMKlj7YreXEq4tFtOI2MuPPR3QYjm6g2X4BxmJNRl8WYX5A24v9DM H+Wt9AIcWHJB6NNjC6mW+i5KwGi/bxGol7ET3j1NcXmnPb8J7rMbsIpchEKpoFlobvWQ eJig== X-Gm-Message-State: AC+VfDzXCLQ6A0bvO474XwIDruG5WVWuGIKLOgjkm3HOHmsgifdix11U m5NGIkp9B6P6+NUgcNMuTaEH0nUBGgyMzzwPkY10r+pWK22udCjpXFqwF0tGoJ7BsnIxsfE9po7 WuSKAcRV7b0xMhbnD1sGllh7eu9gpTk07YPCJhohFdQ== X-Received: by 2002:a17:906:6a16:b0:96f:9963:81ee with SMTP id qw22-20020a1709066a1600b0096f996381eemr7607935ejc.50.1686161451089; Wed, 07 Jun 2023 11:10:51 -0700 (PDT) X-Received: by 2002:a17:906:6a16:b0:96f:9963:81ee with SMTP id qw22-20020a1709066a1600b0096f996381eemr7607913ejc.50.1686161450893; Wed, 07 Jun 2023 11:10:50 -0700 (PDT) Received: from amikhalitsyn.local (dslb-002-205-064-187.002.205.pools.vodafone-ip.de. [2.205.64.187]) by smtp.gmail.com with ESMTPSA id oz17-20020a170906cd1100b009745edfb7cbsm7170494ejb.45.2023.06.07.11.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 11:10:50 -0700 (PDT) From: Alexander Mikhalitsyn To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Christian Brauner , Jeff Layton , Ilya Dryomov , ceph-devel@vger.kernel.org, Alexander Mikhalitsyn , linux-kernel@vger.kernel.org Subject: [PATCH v4 08/14] ceph: allow idmapped getattr inode op Date: Wed, 7 Jun 2023 20:09:51 +0200 Message-Id: <20230607180958.645115-9-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230607180958.645115-1-aleksandr.mikhalitsyn@canonical.com> References: <20230607180958.645115-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Brauner Enable ceph_getattr() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Cc: Xiubo Li Cc: Jeff Layton Cc: Ilya Dryomov Cc: ceph-devel@vger.kernel.org Signed-off-by: Christian Brauner Signed-off-by: Alexander Mikhalitsyn --- fs/ceph/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 8e5f41d45283..2e988612ed6c 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2465,7 +2465,7 @@ int ceph_getattr(struct mnt_idmap *idmap, const struct path *path, return err; } - generic_fillattr(&nop_mnt_idmap, inode, stat); + generic_fillattr(idmap, inode, stat); stat->ino = ceph_present_inode(inode); /* -- 2.34.1