Message ID | 20230607180958.645115-9-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp392502vqr; Wed, 7 Jun 2023 11:14:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BOjhz9EdJmhM2nEu2sVTdgqOeocA5YKmrATKxowhL0e1tPD3zE54oYgh24Z2+LWErZamv X-Received: by 2002:a17:902:ce85:b0:1b2:2a96:4283 with SMTP id f5-20020a170902ce8500b001b22a964283mr3417193plg.47.1686161660436; Wed, 07 Jun 2023 11:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686161660; cv=none; d=google.com; s=arc-20160816; b=ABeIImejLa0vqNFt913A0P7s+t5yb411YwRmK5uHnuxeoV9NCkGw0gsSv1bW0a7fUY D2MoLHuRnlB2/hcoQuP8tYoMRThNy/CpyGe8CHTXn+BUgm+FbfqaWO0Wx35/R5drXEkO 8p0cA9atFHEjP5Es9MOUFR4mSz441gNSFifPS61p4NuDlj/ZZc0UxqS0vHNcr7/zRXTq SODFfQzFw5yaAO7rObe6hceHVuS8zGer8BBzX7ABznKUkZ7WKbkD5ypuz6eNfZm+knS5 af7iJCh+QkjLm8vwBNWVxHYLGVA79ibHLFH6RgdDRgWHGAt8MFdzixOZ8Ohhbi+lvznF 9f6Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a170903124a00b001b02a9bb4casi9237268plh.443.2023.06.07.11.14.08; Wed, 07 Jun 2023 11:14:20 -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 S232646AbjFGSL1 (ORCPT <rfc822;literming00@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <aleksandr.mikhalitsyn@canonical.com> To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Christian Brauner <christian.brauner@ubuntu.com>, Jeff Layton <jlayton@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, ceph-devel@vger.kernel.org, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768068649323301287?= X-GMAIL-MSGID: =?utf-8?q?1768068649323301287?= |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
June 7, 2023, 6:09 p.m. UTC
From: Christian Brauner <christian.brauner@ubuntu.com> Enable ceph_getattr() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Cc: Xiubo Li <xiubli@redhat.com> Cc: Jeff Layton <jlayton@kernel.org> Cc: Ilya Dryomov <idryomov@gmail.com> Cc: ceph-devel@vger.kernel.org Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> --- 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); /*