Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFB67C433E0 for ; Mon, 29 Jun 2020 18:24:17 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A0870255D4; Mon, 29 Jun 2020 18:24:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="I8fbVNFC"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="O12ctmUe"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="awED3q3u" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A0870255D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jpyS0-0007pE-SJ; Mon, 29 Jun 2020 18:24:16 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpyRz-0007p7-Ev for linux-f2fs-devel@lists.sourceforge.net; Mon, 29 Jun 2020 18:24:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; 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:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hGPhqFg0kW3OpIE2mpFBnoVixk1/4iJb+OwDM1nxN+0=; b=I8fbVNFCkTeXy1Hj+rh1a+w3rK w3PPtynlTXWoZ6OrBPpBgASl9DMWdHUmYVmuWajkbaak60C6MkCyA79yPpuwUtuIT1JgYVDPIWA33 F2iFXuXThk6Vvr78vB2Bfx1rko8LnaZjohfw6c2Pe2i6nbOk9WaaiBfMn29okmSh1pvA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; 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:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=hGPhqFg0kW3OpIE2mpFBnoVixk1/4iJb+OwDM1nxN+0=; b=O12ctmUeCxJP4ozO6pg+u89I/6 h9lxjUGeXQiW2vB6v+tVj/8ls0mgYD2vDgk79onPMhmY6sTXC7RN+Al4kSdkCXQAD7y1LquMFJFYT YZFdfgdfNyEjpmAe8xrQLCwrsmLS8o6HPOYbXBoMJsP60BRMU/RRaISIC+V6u7zq26LA=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jpyRy-005GP6-CS for linux-f2fs-devel@lists.sourceforge.net; Mon, 29 Jun 2020 18:24:15 +0000 Received: from sol.localdomain (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EA2F8255C9; Mon, 29 Jun 2020 18:24:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593455048; bh=WtcO4OQ+rWVThEy0P5QwrgAlBFNU4fHDkqK2m2rvXk0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=awED3q3uewhYzryJjBkPIlXegndymb+6phw4rtdtP+XE10ZQqM0ZChJ8CuGUjABvJ 4dglfld0hQrcgm6zMwZ30JXdyvmkDiFtYMfzFbGwFaoWZ4gAgRuVu3rjXvy0n5nlk5 z4mTiNZo07S0XF3ZtgiYnG3g2v9BpeC0SIdkkv/Q= Date: Mon, 29 Jun 2020 11:24:06 -0700 From: Eric Biggers To: Satya Tangirala Message-ID: <20200629182406.GE20492@sol.localdomain> References: <20200629120405.701023-1-satyat@google.com> <20200629120405.701023-2-satyat@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200629120405.701023-2-satyat@google.com> X-Headers-End: 1jpyRy-005GP6-CS Subject: Re: [f2fs-dev] [PATCH v2 1/4] fs: introduce SB_INLINECRYPT X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fsdevel@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Mon, Jun 29, 2020 at 12:04:02PM +0000, Satya Tangirala via Linux-f2fs-devel wrote: > Introduce SB_INLINECRYPT, which is set by filesystems that wish to use > blk-crypto for file content en/decryption. This flag maps to the > '-o inlinecrypt' mount option which multiple filesystems will implement, > and code in fs/crypto/ needs to be able to check for this mount option > in a filesystem-independent way. > > Signed-off-by: Satya Tangirala > --- > include/linux/fs.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 3f881a892ea7..b5e07fcdd11d 100644 > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -1380,6 +1380,7 @@ extern int send_sigurg(struct fown_struct *fown); > #define SB_NODIRATIME 2048 /* Do not update directory access times */ > #define SB_SILENT 32768 > #define SB_POSIXACL (1<<16) /* VFS does not apply the umask */ > +#define SB_INLINECRYPT (1<<17) /* Use blk-crypto for encrypted files */ > #define SB_KERNMOUNT (1<<22) /* this is a kern_mount call */ > #define SB_I_VERSION (1<<23) /* Update inode I_version field */ > #define SB_LAZYTIME (1<<25) /* Update the on-disk [acm]times lazily */ > -- Reviewed-by: Eric Biggers _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel