Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2306997rwo; Thu, 3 Aug 2023 07:40:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuZUFPnLaqRAE6Fd789zsdSYlaXTUfaotoLyrrxBG9qJr83qHMlWATezYNJVaxEzy9r9kr X-Received: by 2002:a2e:7003:0:b0:2b9:40c7:f5ed with SMTP id l3-20020a2e7003000000b002b940c7f5edmr7304572ljc.17.1691073606641; Thu, 03 Aug 2023 07:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691073606; cv=none; d=google.com; s=arc-20160816; b=UgKPA82SiiSakmxWCY64MTqD+z0vGxLf8R0SthvFj8fVvPDd3whgU9CJnzLZ1QKT14 W6sEspef2HzEzfgXE/Kt9lOUYqxapNVh2EeWpDokknK9oI/RvC+pbJe9VdaM7Yd6qpQU Ndj3kIU/Zbtjt5Ds5gzGf45VY4f92vVKHNgFWQJn9h6f3Ws4hElMi1sl/KQo50qVBior AAcyOzUvOG9JBEndBYHTrZ/e1susxu+yRh/+QUuwfzeKqROdm8eaBS5cSAOvNzOuIWps 6/JxtvCBfP3wKKKOzY9j+wnEZR3OQ/J5ZlI81YuGsyhlnXPQS7Bsv9HKiKCHhfVrZJp4 7z8g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a170906970d00b009889d31227fsi11349377ejx.588.2023.08.03.07.39.41; Thu, 03 Aug 2023 07:40:06 -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 S236634AbjHCOBa (ORCPT + 99 others); Thu, 3 Aug 2023 10:01:30 -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 ); 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 ; 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 ; 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 ; 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 To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Jeff Layton , Ilya Dryomov , ceph-devel@vger.kernel.org, Alexander Mikhalitsyn , 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: 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 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); /* -- 2.34.1