Message ID | 20230803135955.230449-7-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1239393vqx; Thu, 3 Aug 2023 08:51:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHklF6cQbUvyYLOItxoVEWQDope+8UmKblyfNRIYbFqeHkRNiDwvz4afSA8Yar46Sdsbuhr X-Received: by 2002:a05:6a00:1a89:b0:687:83c8:1426 with SMTP id e9-20020a056a001a8900b0068783c81426mr2934231pfv.6.1691077875923; Thu, 03 Aug 2023 08:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691077875; cv=none; d=google.com; s=arc-20160816; b=xxouXIsS5f/+ADy+txprkipVYITEd3mHLei9BAAE+CAsuZQFRkMtIxog7jQnK5Q8Wz 8QYN03LcDLd6S9GYalUUzPNDmXlNfK3APytC94zHp5bnpHeNPDR6dqZKklx1/uwh/hAn 3GVnWW04jPv0wJ4yHPJjffScyvmcYC79kSh2zWn5aOMI3qkKLcaNraVCzrNSzd1gWKxc QuQcwa+gf71ltNd2ui2HzXlGsy2ojAE9OlJ1KgjoDcXnvUoC0A/H2Wpc4l9+H7J1l+zJ YS0KlMXO2m1ZS2qVq3BZjlIeMKJ6zwT5FtVB7reAXruJJOwrlhrYuOOHrnZgSrm3JKa6 PU4A== 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=UcFVztCJAM2ahh/FrNjOSFochHc7joJIUNwe927Qbo/q7MfyXkKU56r28g1+L5uv4Q YLxYp7m3mlAhQ9K7Kdfq/wxuW4b2DfefN90ifG3862Dw9QqoqRaNUhBRzb9TKM4XTKcB mFD7aN7FagZsxBaRWcj9ReZwWCua27WPxBAku0/alJh1d9k57LNhe4UX0xlGaQzBJD3U 3SYEzqJaE199N1h+kVpF0L5XSjaTne4K8jdMnpr/WxM+luqJ5O1Ux0QajXoXgR0EISD2 0FD6L3L73Q2x5iN97IVhcgan9bWzOm66+XMqVCJx0SA7PMy0Y417QH5UVxthz9tcPIq6 81Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="hw3g/Zns"; 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 h11-20020a65480b000000b0055c8d5ad18esi62344pgs.509.2023.08.03.08.51.00; Thu, 03 Aug 2023 08:51:15 -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="hw3g/Zns"; 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 S236636AbjHCOBb (ORCPT <rfc822;guoshuai5156@gmail.com> + 99 others); Thu, 3 Aug 2023 10:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235909AbjHCOBV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 3 Aug 2023 10:01:21 -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 5F7AB1716 for <linux-kernel@vger.kernel.org>; Thu, 3 Aug 2023 07:00:43 -0700 (PDT) Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.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 076644247C for <linux-kernel@vger.kernel.org>; Thu, 3 Aug 2023 14:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1691071227; bh=dbq6NgAMN4t7wxNwyddA+VrJjiC20GkONqywDZDeteI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hw3g/Zns/5itz8A/VvNbRb4bP8ld5EoG5tkka7lz1s8Wz1jhYUIgGUixWB2KdGpoQ 9yA0Nu1eiKCoLXwGx7LKMLpXI0rn9koeVHSfrOUSw+lKbvxuzG7YR1nIrMsGS61ql1 B6Dq8n5YsnnNR+ufExcakvOOP+5Ll3bdsGjrLlqY27KtB/P1AyrLSag05nAgGmvhZk kNdL2KXT99bOSQkJWKwLkJ1Rsof7x7PAbqFufA0H4ttOoXCQ2Ssq1cx4hdIa6OJLoi vaH9RreyDTYbRfq/A62tNCv2IJpT8jPqp7/xhyxwo8fNqFrQ+4ztBdNeEfFRy76vfX A48/Uvi4N6n3w== Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-4fe3fb358easo1056104e87.2 for <linux-kernel@vger.kernel.org>; Thu, 03 Aug 2023 07:00:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691071225; x=1691676025; 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=bF/d6dNHa6UkYM7kAwaeffAwm+VZHfhHo98KOqYb72/WE1mFIDUSUqpoiWFzoZ7BJm 6WKQGA94gUMxTbG0ffHSsiKfGDq247wqbCfYJwhlJHelb7hPAZg6jhUDifXQr2u+rNt3 Iv6GhAZYwzCJEQknym4bmKstCreSDDkR1CNcBh6CsVKa8JKkeGv4mYh7vF8D4Ez1auR8 ogD2WsOXR7RYwVI853UIdAqJbnjbobfWgmSHKwRee9O1ypxmmoJUtnkaV05C6nTaLUvL qfmrpNXuaq3byZ8IhG4p838XVC/USXWXsfnqMnU+hJe3+4iwGNE4Kdw9vZ5z8g+ghBns uu6g== X-Gm-Message-State: ABy/qLYfi8sJwroQhP97ji1uebLnC3fAn7yAC/ftf81NNLvZaRXswSgB SB3MNXzwZxSfED3hJVgAqSJ7Vm+jhBuu4s2mwTMsOE5ejHEuiME+bF2xDiCkl0ixs4OlxefCJvN 6blXxltxLN6ZJgLC4gj7dKQzrPVska7uwXuZomHJKnw== X-Received: by 2002:a19:504a:0:b0:4fb:94fd:645f with SMTP id z10-20020a19504a000000b004fb94fd645fmr6531915lfj.68.1691071225618; Thu, 03 Aug 2023 07:00:25 -0700 (PDT) X-Received: by 2002:a19:504a:0:b0:4fb:94fd:645f with SMTP id z10-20020a19504a000000b004fb94fd645fmr6531906lfj.68.1691071225425; Thu, 03 Aug 2023 07:00:25 -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 bc21-20020a056402205500b0052229882fb0sm10114822edb.71.2023.08.03.07.00.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 07:00:25 -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 v8 06/12] ceph: allow idmapped getattr inode op Date: Thu, 3 Aug 2023 15:59:49 +0200 Message-Id: <20230803135955.230449-7-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230803135955.230449-1-aleksandr.mikhalitsyn@canonical.com> References: <20230803135955.230449-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: 1773223674858708304 X-GMAIL-MSGID: 1773223674858708304 |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
Aug. 3, 2023, 1:59 p.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); /*