Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp669123ybt; Wed, 17 Jun 2020 10:47:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGe7HOnvHXhxxHd6TRpGsVN3aleUVt1MiN+9JJ9+cd3janHDkYqglQ3mjYNnfZh5PRgTGK X-Received: by 2002:a05:6402:129a:: with SMTP id w26mr306004edv.41.1592416054441; Wed, 17 Jun 2020 10:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592416054; cv=none; d=google.com; s=arc-20160816; b=y8+nl0l+UWFDxsXtLh7+7VaG5CUn+1sjSZmiOzUglmLNGQqqF6ERpwNPyhRhbN7fuM s9miqZtmuqy6kWHlWBQpaWGeglIAjUg/2TPkHOqlH7sTYTCMYEvS+pD5znad3yaf5f8G M3Jr7by4GJxM6odWr1U/rbPUnlogP0g/1CTkiO9uAx/mzBvtAWn++1FL3ozSKQAXVLHg U8fQQGBFt5B6f7LPzUziqbXJuSdgYIKX65mqLTSMY0LaT9gK+n0ljdO9Q4osThQUFdwP 8vzeKAKaBcnSdfN70Vi+JEE71LNTF855dVTaiNCcmqDg7NG4ZDD3ktaohEXx1aMhaW5W YqTg== 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=kWcvnhGdKUKtgVpkCaiJZknZ/AEaHV+JwRuoE3Zq99Y=; b=0MXVTeaB+yfotXbKfMg2EcmaM5uPDcO94W3yNXMUl16IbUnNWAdV9y1XweJfjUFEdy RcWGBcDYN/DoXNNgq7YWbDemwMYUNfJwbKLav7sFTuXuSfP3U62cH5l7gJVLUfni9Z/j 1apWXlo2mPgSN2O17ncaouI8UolLrlj0r/adagxkhx25kX7i0PXALPOr2Axffouykyqi Gv4CDl5OMI8WINmoRzulSXUPN6SGGtNbNr0wXRohPsn6sT5/wyKGgQlkv5yR4q+y0TiE fZQkAJA4xRmmR3XtiUiHWVCO/E5QC2AbbL2aX5gKe+vhPQBONvINOqvIgHVzKjMFndnT 8cxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LbwKHHob; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si328416ejx.210.2020.06.17.10.47.06; Wed, 17 Jun 2020 10:47:34 -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=pass header.i=@kernel.org header.s=default header.b=LbwKHHob; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726540AbgFQRrA (ORCPT + 99 others); Wed, 17 Jun 2020 13:47:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:34744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgFQRrA (ORCPT ); Wed, 17 Jun 2020 13:47:00 -0400 Received: from localhost (unknown [104.132.1.66]) (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 BE73221532; Wed, 17 Jun 2020 17:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592416019; bh=UXP974nYkcnqpDwmLS52ZN4JfgNusjfQ08nltGiLMkk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LbwKHHobboW5GPv0wwI+ZH1bHD8EJHTDwG/XEvIaC7RMerremZcH/laUwq3uc8Cnj 9tnf5tOtejgrxrfIx7RyMAqlxE+kEgZYytd88SETByOu2K0Z7z2M4MUqCVhedRUDmz 5oZM0Ms7lY2M/CErISFBpz0jW0VZGBPYwi59JrLA= Date: Wed, 17 Jun 2020 10:46:59 -0700 From: Jaegeuk Kim 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 Subject: Re: [PATCH 1/4] fs: introduce SB_INLINECRYPT Message-ID: <20200617174659.GA114489@google.com> References: <20200617075732.213198-1-satyat@google.com> <20200617075732.213198-2-satyat@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617075732.213198-2-satyat@google.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 06/17, Satya Tangirala 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 Reviewed-by: Jaegeuk Kim > --- > fs/proc_namespace.c | 1 + > include/linux/fs.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c > index 3059a9394c2d..e0ff1f6ac8f1 100644 > --- a/fs/proc_namespace.c > +++ b/fs/proc_namespace.c > @@ -49,6 +49,7 @@ static int show_sb_opts(struct seq_file *m, struct super_block *sb) > { SB_DIRSYNC, ",dirsync" }, > { SB_MANDLOCK, ",mand" }, > { SB_LAZYTIME, ",lazytime" }, > + { SB_INLINECRYPT, ",inlinecrypt" }, > { 0, NULL } > }; > const struct proc_fs_opts *fs_infop; > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 6c4ab4dc1cd7..abef6aa95524 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 */ > -- > 2.27.0.290.gba653c62da-goog