Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1150036rwb; Wed, 26 Jul 2023 08:15:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHSlXPXI8eO5ttFeIN3l0GgCIzYK+0i7CZnulLHw6gSb5jo2h4cn4IrJY8XKuJLGr40PpDq X-Received: by 2002:a17:902:e751:b0:1b2:5d5b:e871 with SMTP id p17-20020a170902e75100b001b25d5be871mr2250551plf.59.1690384551542; Wed, 26 Jul 2023 08:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690384551; cv=none; d=google.com; s=arc-20160816; b=dToKkiO/rtJYGJZ/dMFtBIag09EbVAOSkuxabjboGq2oi75uT9Yv/5s228yi1vpfOd OdJpwUVGjDW80CjYP6vw4MPWpSwX31SzoR4MTBxTGgCxWSeE0mXZ/TpF1NNCMzoiMLoo sAk8dEjly45kYT4zp9A4EZfWIMCWHokqu8q8lhDBRPjEjzveMffGRuhcocCYSTz7aw2+ G1WcVJYto7fzUKrR5OeL6ZKrSLzxpAvHZ+GiKenmfJiiECtfft7PaO6B9nrsayJbEJaE XoS1BBzqVdNg3AxUJTM3Xizy9H5/esN7L0gojseZsOY/MMd0IY+n7F+VrJuSiFw77sl9 LpYQ== 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=ohgjgBD3cKcnIyJjD+KXey+VVqMnSRq4bkvBBBDC3os=; fh=4TkUEkUtkmMzuUVnw4jjBfLQ2m58OJnBJO1eZJpOGII=; b=OeFRZowV//tqhYc0Ir/a4as8ca70ProqK0SklE/ot00t1p5XOJom7RM88TOQS9vPRJ vQoQfOeH42KsAYLrnpJEQ7s+NgfqaSQWqlErEd6B5qI9Bwmeb9HZv0SvqhXAwo40EKFP E9WYVStMqt06kOtiJ4974YpYNRZgh3ddz9X8TNmd2a0x5GNi4CKuVV417rUnYJGRVpFV 3+lizrq/vsCeb8tYfkgHkiyZCyIpK7EDk6lt6C2mhoTg66BmAgiUb6CZ0TCyX0CZevpf kcjyIYo8rG0SQZtUY1Jf5wLeVZENJ+jGTo6su9uDDZ/zjKBvaM6GnKrB4XchO8EvrCrL fHew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=njUYy2BK; 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 e13-20020a17090301cd00b001b69de1eae1si14196869plh.620.2023.07.26.08.15.38; Wed, 26 Jul 2023 08:15:51 -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=njUYy2BK; 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 S234452AbjGZOM1 (ORCPT + 99 others); Wed, 26 Jul 2023 10:12:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232529AbjGZOLy (ORCPT ); Wed, 26 Jul 2023 10:11:54 -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 4E3052D42 for ; Wed, 26 Jul 2023 07:11:19 -0700 (PDT) Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (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 0CEE0423E9 for ; Wed, 26 Jul 2023 14:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1690380651; bh=ohgjgBD3cKcnIyJjD+KXey+VVqMnSRq4bkvBBBDC3os=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=njUYy2BKrX7GRjJ8+ItwOGZqi+B0RJYA85xz1oEW1Ik/5FczinJI6pFknjzVp8TZ2 ocRTdn9qxYcA0oDWDLW3ratUwRMWxiiQQdub7lhebiJDRAcs0tAdbsN9B9BfWTBxnn N+FRZB4oVkCCKEGORRZh8JyNnuFtotJISvjruRbb5QAkYnfETPk2FUuRir+LhLDOlP Z3FSCF3UKE5YhkybQHrSrrmIqgT8r4Q6xlSyHtWHqVQJU8FKIiYfGTwSjh0+XOgwIn b7AKyRpw9QaA8v+zywXDoGg4IR5Yfc8OGp7z7k++m9H1qzuDM4uav4ef6Dy9KuZCFI 2Xb5gGppNBUnQ== Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2b9aa4db031so19708941fa.3 for ; Wed, 26 Jul 2023 07:10:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690380646; x=1690985446; 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=ohgjgBD3cKcnIyJjD+KXey+VVqMnSRq4bkvBBBDC3os=; b=CWndGZho5ps5mIhKQTkTHLUCF+AKYMNDRY70T1HyYdASKnwjPuibwAPXa4XjJ8e3Vu ILN+eZKLKfW8x9TrJH8Vd+cFHyLAtCVKVx7tKmU2mv/eo+JCWFT/Ks5+kgc0UD21xESP p7WIMBwpyJRK9iTzKCnzrYxeTrivJNR7p+Gewv69ia+lxmw/2TT4twwg29DeYzv2H+op Ic914XIds9kV1jY2Y1ST5LuOy/eJpnMAlbWomzDC85ZNRKfUrOhYXQOPGeUIr09otYRs /yZQVDyfZesp9l+dK7TnozA51Nq/LMAO2rVmMWqDUZQxH8uO/yX7zAXV3AV5ki+FgR3E YL5w== X-Gm-Message-State: ABy/qLYIRmBLoWsDKykLw0xPuXnifp9CQqfX7rpzNfYtcCONzb/O2xzk 05OJnOSE6iwnXOlivpfVUphe1yI1xyrsALsU5wah+6gNdkzXJZ7Uothd/32UeGX+hks0dxOz17O iFN10oy6nrpYAs3jq+zKPLJciNxj7qs9pMQcK6Oycow== X-Received: by 2002:a2e:b04c:0:b0:2b6:e292:85ab with SMTP id d12-20020a2eb04c000000b002b6e29285abmr1537997ljl.25.1690380645932; Wed, 26 Jul 2023 07:10:45 -0700 (PDT) X-Received: by 2002:a2e:b04c:0:b0:2b6:e292:85ab with SMTP id d12-20020a2eb04c000000b002b6e29285abmr1537979ljl.25.1690380645680; Wed, 26 Jul 2023 07:10:45 -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 k14-20020a7bc30e000000b003fc02219081sm2099714wmj.33.2023.07.26.07.10.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 07:10:45 -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, Christian Brauner , Alexander Mikhalitsyn , linux-kernel@vger.kernel.org Subject: [PATCH v7 05/11] ceph: allow idmapped getattr inode op Date: Wed, 26 Jul 2023 16:10:20 +0200 Message-Id: <20230726141026.307690-6-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230726141026.307690-1-aleksandr.mikhalitsyn@canonical.com> References: <20230726141026.307690-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 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