Skip to content

Commit 457e7a1

Browse files
Satya Tangiralaebiggers
authored andcommitted
fs: introduce SB_INLINECRYPT
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 <[email protected]> Reviewed-by: Jaegeuk Kim <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Reviewed-by: Theodore Ts'o <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
1 parent dcb7fd8 commit 457e7a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/fs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,7 @@ extern int send_sigurg(struct fown_struct *fown);
13801380
#define SB_NODIRATIME 2048 /* Do not update directory access times */
13811381
#define SB_SILENT 32768
13821382
#define SB_POSIXACL (1<<16) /* VFS does not apply the umask */
1383+
#define SB_INLINECRYPT (1<<17) /* Use blk-crypto for encrypted files */
13831384
#define SB_KERNMOUNT (1<<22) /* this is a kern_mount call */
13841385
#define SB_I_VERSION (1<<23) /* Update inode I_version field */
13851386
#define SB_LAZYTIME (1<<25) /* Update the on-disk [acm]times lazily */

0 commit comments

Comments
 (0)