Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp943457rwd; Wed, 7 Jun 2023 08:53:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4OANRXS3vVEIxNjNAcqqhTg4aZTfGPrX6unE4Tznv5bXvL2LyJwLQdL5bA4TAAcb8skCYK X-Received: by 2002:a17:902:f152:b0:1af:bae0:6be7 with SMTP id d18-20020a170902f15200b001afbae06be7mr12401350plb.10.1686153218589; Wed, 07 Jun 2023 08:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686153218; cv=none; d=google.com; s=arc-20160816; b=rZhSCecDEJVqYzvuKkcn2io+CZ+IYU0aw3gTfvD6XrQH5s37KZV0mmFsqyV6LYCZgM FGwmWgCDGzaQT2uFAqbVgqJgn/YEu4oXuWkxt7OPiJoNXhRpNMJpM1SerR/jpOtRSFF9 0yIQ2z4hZia+/LnSMf9lIeMu/oSPdhffNL5cCVkfHk4IgI/fcQaJrFwPV8sGeJ1VjgWk BYgcS/fDAu4nOYqFLP5c5MHeXpMK2A2HgoL1a8lKyA/sxasSaMnukJ4OwXLFayJcUnRX cpnoWe1YxChtQAifnbj06UW0G6FzkLXysOpqpU5CgXhNsczZe1jdzhJp18WKWn/s0BjN sw3A== 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=E1ad9bQ1aGlayjQkBmzknmBzpwDvRLF1iaTT0A2Zyj8=; b=e8abd4dprL28N9aRl0UyXhNqdSqChhWCehvIVJXVfcQM4GhgBu9/3guRaUDfoYMnN1 Fovkic/ULT2enDA9FNAAVlIXPFxUUYyOGDJUEIf37nDUxyUJ8wfPjam9e3Cs/7/tbLm6 FHueVvB2VNJT//EVHB8U0PM+97tiCAoonhBhi5rM2XII+HWElodKfU8JBrJeTH5XoiuE epiGfFK0cHYOIsUDbNsuYv6qYX4mkv2B6+8HF0HmXUVpyiQjkOgrTseojU7UEckL9wlO KmQOnywsoXhysQd97pwxbYvjc9CA57eYqxFwlHfGAVsuo6D6zd7ChuDmMWpn7KdUsP33 utcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=UREi0LMh; 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 f9-20020a170902f38900b001adf24718c1si1170596ple.256.2023.06.07.08.53.24; Wed, 07 Jun 2023 08:53:38 -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=UREi0LMh; 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 S241411AbjFGPWB (ORCPT + 99 others); Wed, 7 Jun 2023 11:22:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241352AbjFGPVk (ORCPT ); Wed, 7 Jun 2023 11:21:40 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE691FFF for ; Wed, 7 Jun 2023 08:21:27 -0700 (PDT) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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-1.canonical.com (Postfix) with ESMTPS id 4458F3F19A for ; Wed, 7 Jun 2023 15:21:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686151284; bh=E1ad9bQ1aGlayjQkBmzknmBzpwDvRLF1iaTT0A2Zyj8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UREi0LMh9jD2Q/M+ow2Q9XYCMqinW4XhTuGB8+ANSUD1+DHS+eOQmIT5s754VXiQd ZHqeGPK/9F4SkGWcpkRUX9iJy6VJPlFEnKIL/Yep/AGIVd5HbyKgFsBGiMxUTXGrf4 GACe3GGBS9/o8WD5NYmH/Mq4C8HlvkV72ojWzB4h5K875t1YLHcZ+rwo+Lb8KHhpp5 VzgvCWOV7x8tPkW16HfEXVZf8mbpRLZTvPwXI0RVtxHPqH2FCfPUlTTsQQ4TDaXkyX ftQuyrjmdOPQVnAlrkrr8Kf+h2mbAfypfQMlug68W5we4RXrSGPV6AgIDjmud81pHs MsDqc+rI99Qeg== Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5128dcbdfc1so919990a12.1 for ; Wed, 07 Jun 2023 08:21:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686151284; x=1688743284; 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=E1ad9bQ1aGlayjQkBmzknmBzpwDvRLF1iaTT0A2Zyj8=; b=a3TQ2dbvlxv65mX5SOHxdWOCMfM0yriFp4i9xjlXmWs5W6WtWyZ/DqAVvjyn2JpWsN 3wUALXzvVeshFiJwOgmyTxEWXnsg5GWk9aK5O+JpXSac2eWfEcO3Ytw+i5dMbIgQJy/7 J/h4mIzMb8aueFzeqEL82e8ewETP6oS7j6z16uHJz2TYgE0OoIehTio9kPAr3TNKOK5U Ve0gMNIsoLuVgRIX5V4M8HXS5SKan5tVt2Odecnmv1/A189c6mSLvrnFtzpqqFOS8xCx N8lGS4qJ9TpqxEHmqvywotFxHjCnUNEnz0+oijDC/H3LO6+qEzjcnV+fgL93TZyIfW0x J6jQ== X-Gm-Message-State: AC+VfDwyWTWxeuwpIbMTo25xzXdUMGuV2TnBJA/q2KP0WUlvBnNW1mFg 1g9SJZSkbnwHcqnm3yWoQHLolcrVDd9cIUWRZz9bM8NF5xRLru7ZW7I6qUZSu13uyGFIWAFicG5 6RBzBWtiwy9pOeIbNVJ0QC9FP8MiODmaotuih+1LNtg== X-Received: by 2002:aa7:d450:0:b0:50d:dba8:c64a with SMTP id q16-20020aa7d450000000b0050ddba8c64amr4485733edr.18.1686151283817; Wed, 07 Jun 2023 08:21:23 -0700 (PDT) X-Received: by 2002:aa7:d450:0:b0:50d:dba8:c64a with SMTP id q16-20020aa7d450000000b0050ddba8c64amr4485727edr.18.1686151283632; Wed, 07 Jun 2023 08:21:23 -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 w17-20020a056402129100b005147503a238sm6263441edv.17.2023.06.07.08.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 08:21:23 -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 v3 05/14] ceph: allow idmapped symlink inode op Date: Wed, 7 Jun 2023 17:20:29 +0200 Message-Id: <20230607152038.469739-6-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230607152038.469739-1-aleksandr.mikhalitsyn@canonical.com> References: <20230607152038.469739-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_symlink() 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/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 8d3fedb3629b..3996572060da 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -956,6 +956,7 @@ static int ceph_symlink(struct mnt_idmap *idmap, struct inode *dir, req->r_num_caps = 2; req->r_dentry_drop = CEPH_CAP_FILE_SHARED | CEPH_CAP_AUTH_EXCL; req->r_dentry_unless = CEPH_CAP_FILE_EXCL; + req->r_mnt_idmap = idmap; if (as_ctx.pagelist) { req->r_pagelist = as_ctx.pagelist; as_ctx.pagelist = NULL; -- 2.34.1