Message ID | 20230524153316.476973-5-aleksandr.mikhalitsyn@canonical.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <linux-fsdevel-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AF18C7EE2D for <linux-fsdevel@archiver.kernel.org>; Wed, 24 May 2023 15:35:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236720AbjEXPfO (ORCPT <rfc822;linux-fsdevel@archiver.kernel.org>); Wed, 24 May 2023 11:35:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236347AbjEXPfD (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Wed, 24 May 2023 11:35:03 -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 C3CBCE47 for <linux-fsdevel@vger.kernel.org>; Wed, 24 May 2023 08:34:43 -0700 (PDT) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (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 6A87A3F18D for <linux-fsdevel@vger.kernel.org>; Wed, 24 May 2023 15:34:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684942442; bh=xxg/uwnVyZOP2Ay/FSpDiOkYB17FXWwEBwZ7vkk162A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X081nxL6/uAvTf2GM0fAkg8hm+G7OTDi0PWioMjaajqKZHjRAKxUP4cCZ/oKIqwlG uFS7bbJB1dhdpf+tkNJMm4dp1s/33I+SxqKO1NEebND+/Yhvgupqj5F8lqnZSrTbuQ hsbX0jBhx/ndP3lB4Qj9OSf+V77UppjdvQdwbRFIFBugcNQYcAfOP/7VwivG2mjBla JbkuxgTgOMuclgZNX2uHmuwPpKGu646r3pnEqW5w421xvZ1AQlusnpZGDOMAMP53tL 8cx/XzBY1gSkhr9EJU3f36T7dze9oBLG4f3/AFYqcVBWtY6sVrV7v6fYxI/FPSw9Ws ReknYqyKkVo5A== Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-510d8e4416cso1503897a12.3 for <linux-fsdevel@vger.kernel.org>; Wed, 24 May 2023 08:34:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684942442; x=1687534442; 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=xxg/uwnVyZOP2Ay/FSpDiOkYB17FXWwEBwZ7vkk162A=; b=bgdS+0+hEjfmvI/5O+Hd/tQ6RVhgsd1rDD6FTSOaA/HYkKYbuE+Q8GIdfSDvJQVFht VVE1pfJlrZF21w700U+64JeAyPoJJPg6T0PBhWUrTE9e17qY9X+VrdPu1ztHQ9rPQmTS cyOdxvp3jbwJ4hcRkka7wWdlCJLQsjx8UIAdZHx2DdW1jHEh6C0Rqmm9dPa5E9VLc93l c67U53UtNHGA64f9jzR6oauCDa5gjj1lHuVNfZIFQNeNLI9j/B7FL4zsur+1xTtlNGIk gt+biJbzkzQX7YJ4/3baRMJrsqdTp09d9VacjIP1PyZ9km6GLTYb/1GC3JenvYXdUj4j IQpw== X-Gm-Message-State: AC+VfDwT74zObBxtssjTXK+wVb4ZC2uyqhdv2H34420Zmg+XOV6BKzWl Zxbx7GAFheFDkQiHgNjMviUmm/rFEVncTbmYgj5BG0wVGIPXBbfnq6qi2YJHxf2Ja69jU/3uY1b Tg5jwO+BABzBMeYp1vD8kQw9Vp83tWkniWpaaqticQCY= X-Received: by 2002:a17:907:728c:b0:96f:f6a6:58cc with SMTP id dt12-20020a170907728c00b0096ff6a658ccmr9115840ejc.15.1684942441741; Wed, 24 May 2023 08:34:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Q7Lsu20tS8hE/7FwlwR1NjZ7p+guAstMYuytSVHgRos67j/I/Z+zrmEJ9DtP+ZasFoivgRg== X-Received: by 2002:a17:907:728c:b0:96f:f6a6:58cc with SMTP id dt12-20020a170907728c00b0096ff6a658ccmr9115823ejc.15.1684942441514; Wed, 24 May 2023 08:34:01 -0700 (PDT) Received: from amikhalitsyn.local (dslb-088-074-206-207.088.074.pools.vodafone-ip.de. [88.74.206.207]) by smtp.gmail.com with ESMTPSA id p26-20020a17090664da00b0096f7105b3a6sm5986979ejn.189.2023.05.24.08.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 08:34:01 -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, Christian Brauner <christian.brauner@ubuntu.com>, Jeff Layton <jlayton@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, ceph-devel@vger.kernel.org, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>, linux-kernel@vger.kernel.org Subject: [PATCH v2 04/13] ceph: allow idmapped mknod inode op Date: Wed, 24 May 2023 17:33:06 +0200 Message-Id: <20230524153316.476973-5-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230524153316.476973-1-aleksandr.mikhalitsyn@canonical.com> References: <20230524153316.476973-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org |
Series |
ceph: support idmapped mounts
|
expand
|
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index cb67ac821f0e..8d3fedb3629b 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -884,6 +884,7 @@ static int ceph_mknod(struct mnt_idmap *idmap, struct inode *dir, req->r_parent = dir; ihold(dir); set_bit(CEPH_MDS_R_PARENT_LOCKED, &req->r_req_flags); + req->r_mnt_idmap = idmap; req->r_args.mknod.mode = cpu_to_le32(mode); req->r_args.mknod.rdev = cpu_to_le32(rdev); req->r_dentry_drop = CEPH_CAP_FILE_SHARED | CEPH_CAP_AUTH_EXCL;