Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fscrypt: move fscrypt_symlink_data to fscrypt_private.h

Now that all filesystems have been converted to use the symlink helper
functions, they no longer need the declaration of 'struct
fscrypt_symlink_data'. Move it from fscrypt.h to fscrypt_private.h.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by

Eric Biggers and committed by
Theodore Ts'o
0eaab5b1 1e80ad71

+9 -9
+9
fs/crypto/fscrypt_private.h
··· 50 50 51 51 #define FS_ENCRYPTION_CONTEXT_FORMAT_V1 1 52 52 53 + /** 54 + * For encrypted symlinks, the ciphertext length is stored at the beginning 55 + * of the string in little-endian format. 56 + */ 57 + struct fscrypt_symlink_data { 58 + __le16 len; 59 + char encrypted_path[1]; 60 + } __packed; 61 + 53 62 /* 54 63 * A pointer to this structure is stored in the file system's in-core 55 64 * representation of an inode.
-9
include/linux/fscrypt.h
··· 21 21 struct fscrypt_ctx; 22 22 struct fscrypt_info; 23 23 24 - /** 25 - * For encrypted symlinks, the ciphertext length is stored at the beginning 26 - * of the string in little-endian format. 27 - */ 28 - struct fscrypt_symlink_data { 29 - __le16 len; 30 - char encrypted_path[1]; 31 - } __packed; 32 - 33 24 struct fscrypt_str { 34 25 unsigned char *name; 35 26 u32 len;