Message ID | 20230726141026.307690-6-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp478036vqo; Wed, 26 Jul 2023 08:24:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGMoL9B5UWk4Uv480Ve2aVD8RM/EPLadkZTH+/9VueQXXy2Ms1fEodzxB3RMPEwIlO032vU X-Received: by 2002:a05:6a20:3c90:b0:138:1980:1dd3 with SMTP id b16-20020a056a203c9000b0013819801dd3mr2262752pzj.14.1690385080286; Wed, 26 Jul 2023 08:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690385080; cv=none; d=google.com; s=arc-20160816; b=ugwSAPNKLnh+IjHW+v9azyskSgf9NjBY5mkK42rHm07a25b/1U/Q7DsT9cuyS9BugR RiFz74vzu2wzxj9KdscblgdoMjVEgzoRK8yRjbBry5xW5IiYGqCFzeSXS0FV0He8nqxs vutwNCkEpcpskpF7mxY4BMkaQpckoeZVGH9POtIT1IHYQVhwslJvIDXq/DWu/w6gce07 1n8GSNKtfVDDR8RfflhseS7ImuxqKqGgd0/X/oxVo7diMiMR01sWFVYtX8HMiAyv0jZF vEbjTFKrGTfye3X3eChjzEmirCyU09pclN/YpDU85BBA79EoLgv2qta2AH3FmX47YG6O ToUg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k184-20020a636fc1000000b0053b928deb7asi11388459pgc.344.2023.07.26.08.24.26; Wed, 26 Jul 2023 08:24:40 -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 S229959AbjGZOM2 (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 10:12:28 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <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, Christian Brauner <christian.brauner@ubuntu.com>, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772497225480214900 X-GMAIL-MSGID: 1772497225480214900 |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
July 26, 2023, 2:10 p.m. UTC
From: Christian Brauner <christian.brauner@ubuntu.com> 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 <christian.brauner@ubuntu.com> 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); /*