Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp243729iob; Mon, 2 May 2022 18:18:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkkFicjk3f/0rybN4vPJmGRReTxmcIGJFb0DO+HWa7SX7CtKp0DiEJrIv7T19hYrk8eb2w X-Received: by 2002:a17:902:c948:b0:15d:3888:7299 with SMTP id i8-20020a170902c94800b0015d38887299mr14204628pla.121.1651540739272; Mon, 02 May 2022 18:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540739; cv=none; d=google.com; s=arc-20160816; b=gqCYXZhvaAdwd961VBA0G+g6MspSqgk1hN5VB9jkAXnh262oaaXOxIjrvla6F4nEHh M/Bgrzh/PbSvyi1ozv0AuzHNZwIwS4USS4Sjae+i39cT+WSLM4APc7cY27Sar98g80d4 jQZeb1PCFnfl8E4MB9auciBYgcluff4w6oQeIoV0/jnMGPbvLai2m7bC9l9Sv3e+FPyO uj7LPDNj6WglDMyENCinLG/mPJKgH8yqsKupcrWHcFxmns2W5jZ+445gmBJkfkdyRHHb LCzbyZ7uocY0P44tBZuILCg/C+6UMes8CyhIFO/0cduANtQJlwRtVKWXIieuToJr8W0n XO9w== 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=spyH+CLq2sEjiIvISgmp7HyxnvRaZjFzXv1/VqME9OM=; b=I9/4ZuHTk5pj0jpOoPBfvA+BSVwlgpxlulSHLiEDf3REpyhgIi87hNebSbUOnxoLh2 IMVwHnVWJO8riJuUXRnWnYGbA/F3ZVFuRX/ygRuYd1LSZ4IV5wJW2ot3Cgbsla43E6wA XBw7j2A7zUmE2t8LVGHucWn9wV7xFM9x/qw8xl7X15pFMR2at/MEjVyvB6AuegT1uF7N p57jH8q9dCVN8MsfpbFqgiHPbIbtfMtH8ufsm1LvvLkjvimMITiMzDCKGVq99qv1ACVM t4s2uAYDqFYXpFxb2DdyuwP+VEhhXMe4SKVHyvOdyVYSmnXUvdT6HUKtBc9gB8fVZNkD N7lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p7s3i+3I; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z4-20020a170902ccc400b0015eb84f826bsi105784ple.297.2022.05.02.18.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:18:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p7s3i+3I; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1E59E52E70; Mon, 2 May 2022 17:58:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237606AbiEBOaK (ORCPT + 99 others); Mon, 2 May 2022 10:30:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237408AbiEBOaK (ORCPT ); Mon, 2 May 2022 10:30:10 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A052E01D; Mon, 2 May 2022 07:26:41 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id c23so12621281plo.0; Mon, 02 May 2022 07:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=spyH+CLq2sEjiIvISgmp7HyxnvRaZjFzXv1/VqME9OM=; b=p7s3i+3I4gekIldbTsauL6caVQF4GGaU3CsD0FyDuCmF3st6wnS2T10gTkHnTqxYjU pMda9t3yhViOZ2cVU0zIIZlyIiyszxErgi4Ti3NWBXQKBtzxSk+SQMwSciI1PJ4K0PDi MnpJGfFvmtzdqQATcSrjsJj+1HitoCYfX1orA+ywTNQqtSjtvpcaWrE0t+uTn8GfLaa3 cJER+PyGNl9plakxAiW8Z4cGV0EfHXmxcRqj/OFOuppUtXjyKtKBNod8psAkrymp0+V8 VpMMPvO08KDPlbEmdEc65urO4wdRd9kk16FREjUaKEUfuScTGa9uRMUBfe1LTE8rJNU1 TYOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=spyH+CLq2sEjiIvISgmp7HyxnvRaZjFzXv1/VqME9OM=; b=ancsbO+7/fDVO3rE7VqqQ/ifX2Fuu/tRH0Gp71fup9K1I3vqRhVsVxs3e7jrqU19/x kQWu4y5zlmLPVwE0CxPn4UdjVTxPT2CyVtixJj3gkyWRAmEJE87xf6yEshPGea533Wp5 /Njgd6PiHYX1zRo6GKNwnakepeIrvwuRIXiJDcCs0gVl4eYpj4ZDj+JAT2R9fZG+kM82 rr4i1H+szMvSb3Slq34sCDEa/dO9jRNj+wbhgRiJHMgl0cPE1yP7j59WdhpY0vEslpmy nSrL5xnVZHtJg7IQe9wpwNpMMDm7pzkAzFw2gB54vd8EVD4yeZHi99b9FxcfDr+NJGDS Kfxw== X-Gm-Message-State: AOAM530Ns+kgqGrGhKQyK0X7rsPd3dcJXzxMFSEUeuJVamB3fSiGgpdB pM7BuCh7QLBg3pM8Ais3yYg= X-Received: by 2002:a17:90b:4ac7:b0:1d1:c730:579c with SMTP id mh7-20020a17090b4ac700b001d1c730579cmr18473458pjb.189.1651501600926; Mon, 02 May 2022 07:26:40 -0700 (PDT) Received: from localhost ([122.171.172.208]) by smtp.gmail.com with ESMTPSA id g10-20020a170902868a00b0015e8d4eb27csm4711327plo.198.2022.05.02.07.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 07:26:40 -0700 (PDT) Date: Mon, 2 May 2022 19:56:36 +0530 From: Ritesh Harjani To: Eric Biggers 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: <20220502142636.ud46y4bwr76g5emn@riteshh-domain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 22/05/01 12:18AM, Eric Biggers wrote: > 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). Sure got it. > > 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. Yes, agreed with al of above points Eric. Will make the changes and send a new revision. -ritesh