Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1280094ybb; Wed, 25 Mar 2020 20:08:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv9EtGP+EIrkHq6dqytxjcBWW8KWT4LD3RBz+5TPiNkhQQDvyRpWkB2IQe0VRFd275ivWcv X-Received: by 2002:a4a:e48a:: with SMTP id s10mr3728268oov.10.1585192133119; Wed, 25 Mar 2020 20:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585192133; cv=none; d=google.com; s=arc-20160816; b=OK8+SI+e0v/9C7fJLdezgJMRQRsHemEMNaCurWn7y1uPpo0EVmPQIeb/t73uELvbG+ E5mMWVx1R1xek1Ej1Mh5rUZrKrHNPJx3a1uybiauWy746NBDvhh6nXPDn42jCzINCDW2 R4Uh87AiwTkLiBu/WS8uaZUeCCqtO5g2N6pP9ROtjXjwyx8tv3Y8aJv0GiYfHrAOpQfJ 5nbu9xp/VqyGndqRXprpFkKf4mj+Vak0ipG9rNfNZJzaYAehMKXQJ2Bvn/Z6ajk8Y8Mp cyqYMIGPq1EiJ4hnMPYCMVlQPNgWBz87jvWOpcmeo/TisSmDsancL6JfuN/oFZYF2A+s ghbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=5Pqv0B5ke8kbkLCKzahA1ADTWdbJkwiiM3DJVPre+r0=; b=LYqmj1Rq6vrrfFlPfEps+JkuHw8e95R0IIyKSKBznVbJO+JothfSCpoe+bpqrgKZXD okQlk2rdeTjhhf4WwtFtzuRi/3AtBqbZt1BgFTvZ3ZRLa0jd5B3LOmW/OLv/rVWWquHY HhH/68HUZJOUqTx76k7uHWZH0nYInSidKlk/kzMUfjRafW96i+Qg73W+R1luljHp6cNe JXJWW4XpQFW4o+Q/eZW9deBMNt+MaDJpnYtHZosL2XUTNoGlExULkrTdPZ0rqlSRd1IK u6q+YyVeQlMXiNttUQ2YRxpV9zGzrc9WLbhHxgZDIS/v0Pu5CF2Gis6hJ6yllesdEV9t 1HHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=X3USqXR4; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si500903otp.43.2020.03.25.20.08.41; Wed, 25 Mar 2020 20:08:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=X3USqXR4; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727798AbgCZDIa (ORCPT + 99 others); Wed, 25 Mar 2020 23:08:30 -0400 Received: from mail-pj1-f73.google.com ([209.85.216.73]:32945 "EHLO mail-pj1-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727799AbgCZDIa (ORCPT ); Wed, 25 Mar 2020 23:08:30 -0400 Received: by mail-pj1-f73.google.com with SMTP id ng13so5083287pjb.0 for ; Wed, 25 Mar 2020 20:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=5Pqv0B5ke8kbkLCKzahA1ADTWdbJkwiiM3DJVPre+r0=; b=X3USqXR4qL98zoBR5xm+r5Iwa8B7XKg984qzqZUkzeS1r3XKmdcWL9n1SgvI9HghUg nM8y2dYeRcEviKJjMBvmdiOP1aLGK4HVl0FuTl7SS5gwdoicJBrE5nU+5T8si6fpwKaL Pq2J6FlR6VjJQjL40Ew3CkSMLuaYGSEO+ESNDhAkZjjWKGbWtNCtMOdYNRrN46eBHN6o RzVNmzzi9/0AKhFVuWRe+DrZKodOlN8Dsv+LrnR1WFteaMcrajtDGhf/gnb2Ie0WVl1q /xPclDdF1ylxfkyQpubwsHb5lYmzOnNcSQrPbfoGClrnii8UPWG7EKZ8yHC4qXoA9hsW ASMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=5Pqv0B5ke8kbkLCKzahA1ADTWdbJkwiiM3DJVPre+r0=; b=lXN40btBMjt+2xdy3IcVqr2CTAJMX07FtIkIdo2OMExqOy8CI22ahg3QiQSM9I+CA+ K8jFaYZoe3rRdMls6L40etmjzpMwpuOGQyn2USVM6uToc1u752phV49F3TUF5YZry08N iO4upvqx+MaocDfows283Wc4Da91nBFAjJV4kRRrO79yichEZjlrSdejJBfznKDefa77 jLyoHWxLAnXrniLhasB/IjHzGr7gemyqXnORMVeR2sjp/EXXL/bNHD/KbhGNoEeVCbOd o+QzT5PB1rukXkQuSmI6fChxaj1kfYW4BOAeZIXPFE2z3LK+j2gGJy1hXSslni7pdEq9 Kn0g== X-Gm-Message-State: ANhLgQ24F6ZMx75jYemyoj9SaU/3fMlRjNv050yWNBqNSAnppn6aWwZ6 sep8AtMDzD+yOLHJIxevGPPi5mQUQ+E= X-Received: by 2002:a17:90a:9501:: with SMTP id t1mr777236pjo.108.1585192108842; Wed, 25 Mar 2020 20:08:28 -0700 (PDT) Date: Wed, 25 Mar 2020 20:06:59 -0700 In-Reply-To: <20200326030702.223233-1-satyat@google.com> Message-Id: <20200326030702.223233-9-satyat@google.com> Mime-Version: 1.0 References: <20200326030702.223233-1-satyat@google.com> X-Mailer: git-send-email 2.25.1.696.g5e7596f4ac-goog Subject: [PATCH v9 08/11] fs: introduce SB_INLINECRYPT From: Satya Tangirala To: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-ext4@vger.kernel.org Cc: Barani Muthukumaran , Kuohong Wang , Kim Boojin , Satya Tangirala Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Introduce SB_INLINECRYPT, which is set by filesystems that wish to use blk-crypto for file content en/decryption. Signed-off-by: Satya Tangirala --- 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 273ee82d8aa97..8bf195d3bda69 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_info *fs_infop; diff --git a/include/linux/fs.h b/include/linux/fs.h index abedbffe2c9e4..5c758a765923d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1371,6 +1371,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.25.1.696.g5e7596f4ac-goog