Message ID | 20230804084858.126104-7-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp159070vqb; Fri, 4 Aug 2023 03:18:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjbT8QLcJyuAhPvFbZWgVBmeXMhMCCiPhYAgK+SyvnhDVZc0RD8JZ+Q3pLbhxOZ0GL8gPA X-Received: by 2002:a17:903:246:b0:1b6:af1a:7dd3 with SMTP id j6-20020a170903024600b001b6af1a7dd3mr1351624plh.23.1691144303941; Fri, 04 Aug 2023 03:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691144303; cv=none; d=google.com; s=arc-20160816; b=s6eTRI7ucnA8au8eKDYxEgjbeQe4AXIHvyHR0XsV/T3+iQtd6eLCznXr9okiGBNpBX 9BQHdyXomsgPVbYXWPRuxcd9RWAbe0Gb8nLJxDBMlLAxjhEACAMUQnYCMm16qO9NUb8R Ec8HJaQKzl7D3EbCqxNLz1DlKkbgFzzn7EfvaJ7SdAsRujfMV77EbaXUPW0gxFsdh2NP gAqyJJNPfXUboNKrhx8+tGoUUMualDe6YDRS34aj+UIJ3PzAgPZ5PSjCxzPjtDyE6pXs UTH2gMZ0xBjNpW/VEjOmSaoYpwNQvn0J9GLNIOb0b/gLMrk49pnFHxbX261PgC0ntoyC pjhg== 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=dbq6NgAMN4t7wxNwyddA+VrJjiC20GkONqywDZDeteI=; fh=Z2mkFIQPI1atT1PXylFFs5aXkUtGzwkgwqJaEftWDsI=; b=K3rKl6D52sgvqsYdPG+2wE3E3CpqcdPOxPdlQd2TrV7nAHpV1uJ2WZRI7S5cTVsvRl 5D9LaKXNqdy17zcByhAqQEvwTLBnfGlmZI/1Pim7sLJsNzGjD6w49FDdlJDwmYzBDsCY QTGDglHH63vci1NxU5RmBZMSiUHn2ywM2TLlIXAoqTz28a3G9dAFCVfFxODPD55luWbI GCVXE50AxZEXbfkNNeItPxs3kehcjhMtgXssrKODq/MM3n62ydrVda6rZJ5Hta8e6lXx cRe9Wr27cO/98PkmR0pp63NW8NL6czlcTbBsrUUq8QmhN/JN+8hZP6KN9tMGmO6S05vh UbhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=edXdGDcE; 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 k21-20020a170902f29500b001bbc63065dfsi1426376plc.568.2023.08.04.03.18.10; Fri, 04 Aug 2023 03:18:23 -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=edXdGDcE; 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 S229643AbjHDIvF (ORCPT <rfc822;sukrut.bellary@gmail.com> + 99 others); Fri, 4 Aug 2023 04:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjHDItn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Aug 2023 04:49:43 -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 17D5249EB for <linux-kernel@vger.kernel.org>; Fri, 4 Aug 2023 01:49:41 -0700 (PDT) Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (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 D58354248D for <linux-kernel@vger.kernel.org>; Fri, 4 Aug 2023 08:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1691138979; bh=dbq6NgAMN4t7wxNwyddA+VrJjiC20GkONqywDZDeteI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=edXdGDcEtsqo8doV8kunlQD0coNauOaZVaUTViowv+QcRw+CVs1fZojjFCTALl84e Dy4VIouV/7PIzHeiRU1pkGewYL/EeBCU513DzJoZwbOFb0gSr3sJQMUdHfuaelygzO hBz3BIEGL6AujCjvuzD6MA37w/ZVOrWOltPo6e7XK+h9uFk994w7CzRyiNZ1cmddXf jLzonDlrVp4GM1WQGp3Mg9FzjG4NxPLVyQduc1dBzWwJtMz4gVSGIzeh/lum3B1Teo 7YwJ4wryXuhE9A+fQ3gru7APn+CURcSgcoFS5PIs41qEJ9pJjxgVZmcF5GtB7Lk0z2 VhvxQZcS1kU1A== Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-94a34e35f57so118538366b.3 for <linux-kernel@vger.kernel.org>; Fri, 04 Aug 2023 01:49:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691138979; x=1691743779; 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=dbq6NgAMN4t7wxNwyddA+VrJjiC20GkONqywDZDeteI=; b=MhdJoz9EOY9Zruoh9NZLEy1pzWwbnvewkKtY7OQ+QL3bm5r8HQjDLlM6PkPA4ZCLcG l1pRTot/cUAwLJM4ngZ0hZB8SEE3k83PuA2STtEdgg6gnszi6ybp86BGemFOQg6yvcSo bSzqJ56RK+tCLcyQ8u+87xblt2T0k+yGgZzeN5/2JiuHphdgYOY7Kjc+jPBiKGRPoBIs 5xc9MLg3UD9UXwOTbUaye+na3KxDmF1CRaI7rAOtMijLhsmbVh1whIEyQW5pWqfifbI8 VeDm4cps48UwkHmhpCNVbMhr0Sz6kg0hwkGG5eW9v5O+Adj4YhFjAdJkl+S4FO3iqfcW dhUQ== X-Gm-Message-State: AOJu0YzaCXbOjv/p/PGa/kbAi6cZ8WgsUzyvVGCTX6y0dzxyXl/izWxl 5AVD418ivldjHJSufuHVu4uw2+LTuPgljHffuV8vEJmG60kA5YuMMzITJecpf+39hVwd/fGcMb8 MxiPzLBG6HnHEl00WyKHJoAyB2aBV87CTj15zSPwaEe9aYlN/Hw== X-Received: by 2002:a17:907:2c75:b0:99c:331:4194 with SMTP id ib21-20020a1709072c7500b0099c03314194mr876530ejc.45.1691138979382; Fri, 04 Aug 2023 01:49:39 -0700 (PDT) X-Received: by 2002:a17:907:2c75:b0:99c:331:4194 with SMTP id ib21-20020a1709072c7500b0099c03314194mr876517ejc.45.1691138979203; Fri, 04 Aug 2023 01:49:39 -0700 (PDT) Received: from amikhalitsyn.local (dslb-088-066-182-192.088.066.pools.vodafone-ip.de. [88.66.182.192]) by smtp.gmail.com with ESMTPSA id k25-20020a17090646d900b00992e94bcfabsm979279ejs.167.2023.08.04.01.49.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 01:49:38 -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, 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 v9 06/12] ceph: allow idmapped getattr inode op Date: Fri, 4 Aug 2023 10:48:52 +0200 Message-Id: <20230804084858.126104-7-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230804084858.126104-1-aleksandr.mikhalitsyn@canonical.com> References: <20230804084858.126104-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,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: INBOX X-GMAIL-THRID: 1773293329387603543 X-GMAIL-MSGID: 1773293329387603543 |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
Aug. 4, 2023, 8:48 a.m. UTC
From: Christian Brauner <brauner@kernel.org> 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 <brauner@kernel.org> 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 3ff4f57f223f..136b68ccdbef 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -3034,7 +3034,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); /*