Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp274312ybt; Thu, 9 Jul 2020 22:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7WbQX0KJ84qz+8GjnpjcWHmhEGOwC8PCQXaW6ORNkLCda+0sDnlrq8Yd8P2Oqo1FYqc4M X-Received: by 2002:a17:906:178b:: with SMTP id t11mr39060242eje.489.1594359437938; Thu, 09 Jul 2020 22:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594359437; cv=none; d=google.com; s=arc-20160816; b=mc5IshZGzje0PI9X3swI4IyvAHol04w4NocsWmR0/6wZqpiYZRGLTLNCDukIT+jdjq wae4PM/IV4V1oJl2eIPjx+dcSzYfbAUMUOMpvG0+6Y2j3T05ra9wR46IY+Yh44zf8y2j mbROFE6bCCYyyivTp2MO0p7s/5mpMaNTy8qIMk+pftEWxLauQ/sct+X5NsUI0vv3g61A ruPGdEqN0LUNGcOnSuwkLJtA5PDjsp27XCrCz70AV5BGjRPf11kASIs7Tf5zfW6wv1ra Qld1MZKnRg3V6MenRnuYqqxdzcAf5QpmUwDVpEoKPS4XoiP2EWJ7Wo+dcN0N+XlKD5yE GzkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pVjWefAfqShBdQ1ZZJmJ6WwzyFiCXEB2I8I0n7n2VvA=; b=RwbflB0W32HkeqXdLtZbsQXTZLDdikR7SxBYvpYWLQMo0l9UOVRxhX6TWmRexJXt1S 5LViOB6sPF0etAgC9ChahxR3Vh7tdXdpPZT9it+EEAzH6Q79J7GoeACf4f196fkCJU4G DRaGNGmmG/MMV2oevOfuuJBN6NJEw0+k35rYUaHe5fiN6dQjPAmONaHXIxB7WJjzwOgK XEmNlioQz1jSYlNBSsQ1iCnXqt1sZ0ujaiRvir3GUWNJ4EdJGxaxb3bV/Bo2JaB+A1Po MKnW9WVttc637M/ScG9pb7tFE+C6X5yra4H/j++t7wNru3FHNuRqcaE9j5u6+dC1b1VG idig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=SUHqfj0x; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si3272515ejt.197.2020.07.09.22.36.46; Thu, 09 Jul 2020 22:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=SUHqfj0x; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725966AbgGJFeJ (ORCPT + 99 others); Fri, 10 Jul 2020 01:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbgGJFeJ (ORCPT ); Fri, 10 Jul 2020 01:34:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62E98C08C5CE; Thu, 9 Jul 2020 22:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pVjWefAfqShBdQ1ZZJmJ6WwzyFiCXEB2I8I0n7n2VvA=; b=SUHqfj0xDvAG/k3lfL1KEXLiV2 60PoTII6SdYLTmUHFeNDnuRi4A94mjv0BljVLGMx1uzxIWRZFKA/JoKuVBK/fS9c79Gt1D9WQJEnR ax0PRiqaz9VlGLTJ025lM0VOvZRrkcUlPyCJir7j4JfFtwZ4yA3+sxKhQNZuysRJU5L5JQqymDCss AiLX10BZ1YGeBBHGHKkXdbT19NKNg4OtqAoM6O7CcpNjxf7II92J/0zFOODZMjzhrrnkQWUetDlS8 HYwJiW4o1RVw+MrxIY3lMCAI97+j0afkuWH4B81BilyO++t9EKd+qQseW+nQdd7QoigjYp9Y9H47o 0RlKQclQ==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtlfi-0006zt-Ec; Fri, 10 Jul 2020 05:34:06 +0000 Date: Fri, 10 Jul 2020 06:34:06 +0100 From: Christoph Hellwig To: Satya Tangirala Cc: linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-ext4@vger.kernel.org, Eric Biggers Subject: Re: [PATCH 2/5] direct-io: add support for fscrypt using blk-crypto Message-ID: <20200710053406.GA25530@infradead.org> References: <20200709194751.2579207-1-satyat@google.com> <20200709194751.2579207-3-satyat@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200709194751.2579207-3-satyat@google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Jul 09, 2020 at 07:47:48PM +0000, Satya Tangirala wrote: > From: Eric Biggers > > Set bio crypt contexts on bios by calling into fscrypt when required, > and explicitly check for DUN continuity when adding pages to the bio. > (While DUN continuity is usually implied by logical block contiguity, > this is not the case when using certain fscrypt IV generation methods > like IV_INO_LBLK_32). I know it is asking you for more work, but instead of adding more features to the legacy direct I/O code, could you just switch the user of it (I guess this is for f2f2?) to the iomap one?