]> git.ipfire.org Git - thirdparty/linux.git/commit - include/linux/fs.h
fs-verity: add inode and superblock fields
authorEric Biggers <ebiggers@google.com>
Mon, 22 Jul 2019 16:26:21 +0000 (09:26 -0700)
committerEric Biggers <ebiggers@google.com>
Sun, 28 Jul 2019 23:59:16 +0000 (16:59 -0700)
commit5585f2af737ae3d7454cb0ae77b995cd3ac7e43c
treef2208ea9f78de125173acabc5107d57f6cf0af20
parent671e67b47e9fffd12c8f69eda853a202cb5b3fc5
fs-verity: add inode and superblock fields

Analogous to fs/crypto/, add fields to the VFS inode and superblock for
use by the fs/verity/ support layer:

- ->s_vop: points to the fsverity_operations if the filesystem supports
  fs-verity, otherwise is NULL.

- ->i_verity_info: points to cached fs-verity information for the inode
  after someone opens it, otherwise is NULL.

- S_VERITY: bit in ->i_flags that identifies verity inodes, even when
  they haven't been opened yet and thus still have NULL ->i_verity_info.

Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
include/linux/fs.h