Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3240117iob; Sun, 1 May 2022 10:39:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU6kI1+mIax38Wh9X7Udz+mB0xQbHkQU5g0NBZ3UaCxPK1LmFoDSSaLvxRP5mhQYjv5rgS X-Received: by 2002:a05:6512:2284:b0:472:60cf:da83 with SMTP id f4-20020a056512228400b0047260cfda83mr3107039lfu.660.1651426757129; Sun, 01 May 2022 10:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651426757; cv=none; d=google.com; s=arc-20160816; b=KAkHz1g/unTIjHwjPxjJKGoPH/Ursn4rWIV39v0+9P3wbpPO/0x6lVaBupmNNPBtj3 +TFMSGT5+hkNMptlaXk77Fs/JWE6THVpK7ye0ajmWBLqccB5Zlb5ea2HHTQPQk8E/V7D Xu4xomTH4kJRPrVU6fmmS2KYtWlVMXjwEOSINoG27qMRViaHAzGZnnUpDxV/AasyG+AG aebs1qqD8kfXwle2O865o2+SYdfDAXuSv9tvMiHEyk2OHCX+aFtiVl0qmpF7ww/Ae7go f2nK31Bd3Im21xpmuDJO63lNb0eTsXDQg7AgFMSgHCmF3cCEilv0769swLs2R9vuqn/S 08xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6f8FUGv76/PrO9Y1qO490O+EC3M//ZIaEyprp+yMs2A=; b=S4hmqIX6TlFxH3dgx2El0oI/KVepo6LmJSvPk1+ElwYxFiKxqUWmjpZXkaCp0u3n+O +/Ab2ROaXlqTq2BfoeC0o/dorIwKSubk7l4YDkfDzGdj/zuOiZ9c7TG/t8CAdeKMgQF1 LpADSfXQJuQIyLbdOCirkurlW/DP5ht5BZAAllDimx1eQg2MF8VVrvV9jGHVczUYe8xy kc0LfYNTdnO+1d+1wynrrLSinV1wuYNR8QYx2k3lIp3z1rA2HC9Fayp606HUH6mNuP2g 1bb/L0qZMOmX9KdZWmsmJi+PqdphZc49Ad5OSBy9L3HpoXwE5CYIrUgLVUBsA3dAoQNl ttcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YXlu+EHR; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a05651206d200b00471d4713695si857701lff.170.2022.05.01.10.38.35; Sun, 01 May 2022 10:39:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@kernel.org header.s=k20201202 header.b=YXlu+EHR; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243920AbiEAHWH (ORCPT + 99 others); Sun, 1 May 2022 03:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234593AbiEAHWG (ORCPT ); Sun, 1 May 2022 03:22:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CB9C49FB9; Sun, 1 May 2022 00:18:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C4523611D6; Sun, 1 May 2022 07:18:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02166C385AA; Sun, 1 May 2022 07:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651389521; bh=tAg0P1xG/JWQnY4z5XupJalk890R+RBNmphemw59FUs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YXlu+EHRWgBqlb0cmccW+hV6fNPJAzHjmv9tzzdutdrB7jPIiVLIr/3yazNZ87M9M hCjHF+sOU0AgOH3iKi8xTI/N/+ArgTwf5i4KIo4AZpJ/etpKcJW7xGHkB09YXfzRDY M+o9kN6HUUnOpCI0e6vvbxnxEKUZtgAh63j/9l1mqNIoJE1yDAQurvbnPy9Kbj41qL LlgqiMpBV2Trpsx0uQBfS480O93ovE57ja3wqxIMSSylcJUEI7WLO7tk8FkXhza587 L5apOYspPGUOjMEoe8+aAaBnLiX8v3/toNYl91ko4/EZH2siUHYTeTkY3u9dUT4eRm o7abEt7408abA== Date: Sun, 1 May 2022 00:18:39 -0700 From: Eric Biggers To: Ritesh Harjani Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, Theodore Ts'o , Jan Kara Subject: Re: [RFC 0/6] ext4: Move out crypto ops to ext4_crypto.c Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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-ext4@vger.kernel.org On Thu, Apr 21, 2022 at 10:53:16AM +0530, Ritesh Harjani wrote: > Hello, > > This is 1st in the series to cleanup ext4/super.c, since it has grown quite large. > This moves out crypto related ops and few definitions to fs/ext4/ext4_crypto.c > > Testing > ========= > 1. Tested "-g encrypt" with default configs. > 2. Compiled tested on x86 & Power. > > > Ritesh Harjani (6): > fscrypt: Provide definition of fscrypt_set_test_dummy_encryption > ext4: Move ext4 crypto code to its own file ext4_crypto.c > ext4: Directly opencode ext4_set_test_dummy_encryption > ext4: Cleanup function defs from ext4.h into ext4_crypto.c > ext4: Move all encryption related into a common #ifdef > ext4: Use provided macro for checking dummy_enc_policy FYI, the patchset https://lore.kernel.org/linux-ext4/20220501050857.538984-1-ebiggers@kernel.org I just sent out cleans up how the test_dummy_encryption mount option is handled. It would supersede patches 1, 3, 5, and 6 of this series (since those all only deal with test_dummy_encryption-related code). To avoid conflicting changes, maybe you should just focus on your patches 2 and 4 for now, along with possibly FS_IOC_GET_ENCRYPTION_PWSALT as I mentioned? There shouldn't be any overlap that way. - Eric