diff options
Diffstat (limited to 'fs/ecryptfs/crypto.c')
-rw-r--r-- | fs/ecryptfs/crypto.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index 4d9db0ed88ea..fad5bf6a6116 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c | |||
@@ -1107,9 +1107,9 @@ static void write_ecryptfs_marker(char *page_virt, size_t *written) | |||
1107 | (*written) = MAGIC_ECRYPTFS_MARKER_SIZE_BYTES; | 1107 | (*written) = MAGIC_ECRYPTFS_MARKER_SIZE_BYTES; |
1108 | } | 1108 | } |
1109 | 1109 | ||
1110 | static void | 1110 | void ecryptfs_write_crypt_stat_flags(char *page_virt, |
1111 | write_ecryptfs_flags(char *page_virt, struct ecryptfs_crypt_stat *crypt_stat, | 1111 | struct ecryptfs_crypt_stat *crypt_stat, |
1112 | size_t *written) | 1112 | size_t *written) |
1113 | { | 1113 | { |
1114 | u32 flags = 0; | 1114 | u32 flags = 0; |
1115 | int i; | 1115 | int i; |
@@ -1290,7 +1290,8 @@ static int ecryptfs_write_headers_virt(char *page_virt, size_t max, | |||
1290 | offset = ECRYPTFS_FILE_SIZE_BYTES; | 1290 | offset = ECRYPTFS_FILE_SIZE_BYTES; |
1291 | write_ecryptfs_marker((page_virt + offset), &written); | 1291 | write_ecryptfs_marker((page_virt + offset), &written); |
1292 | offset += written; | 1292 | offset += written; |
1293 | write_ecryptfs_flags((page_virt + offset), crypt_stat, &written); | 1293 | ecryptfs_write_crypt_stat_flags((page_virt + offset), crypt_stat, |
1294 | &written); | ||
1294 | offset += written; | 1295 | offset += written; |
1295 | ecryptfs_write_header_metadata((page_virt + offset), crypt_stat, | 1296 | ecryptfs_write_header_metadata((page_virt + offset), crypt_stat, |
1296 | &written); | 1297 | &written); |