Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1881085rwd; Fri, 9 Jun 2023 03:42:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ474wXFZQfbkleL5ETWNG9Bddu0PffciLHRFw2b141w/m5ktmmMfDKUG7Qz/snxLIP26xSp X-Received: by 2002:a17:90b:3d88:b0:256:3f7e:e485 with SMTP id pq8-20020a17090b3d8800b002563f7ee485mr899133pjb.44.1686307333555; Fri, 09 Jun 2023 03:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686307333; cv=none; d=google.com; s=arc-20160816; b=PaYmIbbltGNVE4ZsdiYOaeVIpBBbsua4757A0xKlI/ZC/VgmfXaNVJg8ZbeIDOv+HH 4ZnYLOgNGg0VAmU8WZYbNIP2xBHfwiiDM0XD3nW/sKdjHZn86L/5aa7/zJdwgrtfnm++ CwMEhgkmj+iEFR/eSLLZBsSwRXCXIGfOApiLFhlmmpG3i3FbNfCgj3gvNrkhGjiI74yN bjOFXyuKWHAhMauTf3IFHIH3X8vmeI+s3j5V0XIqWN+llDQQqfq+u/xJkqNeKvhpa19A yrrHIWV6HiyPmHoIYQpsRPrRjULXia3A2vwtYUqhcbUkClAJAR/dZJXDWWBaJ2umCQSu /XPg== 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=/3eW+11n/4iCvn/s3430tPb8fe2pR8+LzRYCxQYjku8=; b=MVdFb8QmvjS3NTIVLqGZcMjXWXmxjGh08V93kkweCfJyWGHJ38/oy/BVt16R/L2wWh 63+X1A+RnqTMWhLKnfXQ9oLs3R7mAq94pV/mKZRqHseahxpM0Ctvkjt+b7Plzg6jbzVc 5MT2QAiqwaShZe5eaCxxSsDwA93sVcTUlXCM5YqwYsvIK7T/W/rzey0Yviwy270oJ0GM EtADPnx/UVbR2uo6po5TzeiG3HowXU7SvU4B4wv03kMiCsEsEq+I6HHdfuIhTlkNlPqn 2ozloHAXmLBW1eJBNAEoYNU8b3phmh5xZN8cf21FkGb4pZqZIt3/H6OKKFIHsldHVGvf cDwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=oesWZssZ; 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 in10-20020a17090b438a00b00246fe4e326dsi4250102pjb.81.2023.06.09.03.42.01; Fri, 09 Jun 2023 03:42: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=oesWZssZ; 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 S240465AbjFIKKy (ORCPT + 99 others); Fri, 9 Jun 2023 06:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241369AbjFIKKT (ORCPT ); Fri, 9 Jun 2023 06:10:19 -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 BCC8E4EF6 for ; Fri, 9 Jun 2023 02:59:17 -0700 (PDT) Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (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 10CB23F574 for ; Fri, 9 Jun 2023 09:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686303166; bh=/3eW+11n/4iCvn/s3430tPb8fe2pR8+LzRYCxQYjku8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oesWZssZIjW57ZWF92PWBoWu4iY32fpTt65uUzVnDdsTEkcZnEBnQ2VhxKOckiRuM LzF8EbIgATwmQaU3uCpXPQGZmJq/H8JuPQTuZ3GSqB94+B87CJP5IsuFbHEOAdRRoM 5HSwMJRfEXCmHvseQ9HMnIRijIM8tQwXm0yxf9mzXytIjH6U52XCFGTN+r1m+fy0BH WsgzpYFwSg8ynd4DAk1xoaD9xzloUwc+Vm3Q40QG0dsqAemgJkN0TklMS+ODVfuFOT ZyFi6CZGTDIPgp9ero4qtB/+ahSTmroiGRkJDn3kTCfBI28aaF1ypJR2qsPsxXGFOY sZaAW0lFcz95A== Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2b168e97cdfso12476141fa.2 for ; Fri, 09 Jun 2023 02:32:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686303164; x=1688895164; 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=/3eW+11n/4iCvn/s3430tPb8fe2pR8+LzRYCxQYjku8=; b=O6fYaunkRcfqxUofCIOObLRbfhOkiziMZF5ROeQUVTf2+O7x7fDcbGSNDsoi04kFGh Hzij35dSSGPMgtxuAgZtV7Xa/diwO41IHeV2+S330hi3RF3HYziyCRNJHimoxEXVT/Il mLb97eDgklBZqrcDJ498EnvwMH+bfzkxbw/yNzZ2MsSnjS7Srb/KXr2Q/khJXB8Vk9AY ccgYFGXqI2VL76b5cgO4ffoiGwokS7e5jdbDUFukL7wNpjPVkIPrukLQcnznsrB+6pCE vnRgmT/uS7U2kf/2935hMc9mxhe5rsFsRXFs7qG1HNcPz3lkC68pw13zpExGdhrIiPr1 9AkA== X-Gm-Message-State: AC+VfDxfc31Powjb1aA1htl7SVVDJz/wYK/H4/BfrVcLh6f/5XYC4S9M pc7/BGk/t6mV9H48MOAtfOd7WTtGudpUbdc4SsEOx2Ub6kVQs4etke09VhvsmV/nsjO3Jg9PZLy t5v0rxq+6rztoiyM2mdyuA4A0q1Pgleiaiq5u18WZsg== X-Received: by 2002:a2e:8659:0:b0:2b2:3a4:4ebe with SMTP id i25-20020a2e8659000000b002b203a44ebemr802393ljj.48.1686303164552; Fri, 09 Jun 2023 02:32:44 -0700 (PDT) X-Received: by 2002:a2e:8659:0:b0:2b2:3a4:4ebe with SMTP id i25-20020a2e8659000000b002b203a44ebemr802382ljj.48.1686303164306; Fri, 09 Jun 2023 02:32:44 -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 e25-20020a170906081900b0094ee3e4c934sm1031248ejd.221.2023.06.09.02.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 02:32:43 -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 v6 05/15] ceph: allow idmapped getattr inode op Date: Fri, 9 Jun 2023 11:31:16 +0200 Message-Id: <20230609093125.252186-6-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230609093125.252186-1-aleksandr.mikhalitsyn@canonical.com> References: <20230609093125.252186-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=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 fe8adb9d67a6..533349fe542f 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2979,7 +2979,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