aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/crypto.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-02-06 04:38:32 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:12 -0500
commit7896b631823c6e8f1a520d89390624a51445840e (patch)
tree2f9f2151802d21ded60fc6f53df4daeee3eb054e /fs/ecryptfs/crypto.c
parent162c0d91a365d501c6cc65cba451f2d855e8ee81 (diff)
fs/ecryptfs/: possible cleanups
- make the following needlessly global code static: - crypto.c:ecryptfs_lower_offset_for_extent() - crypto.c:key_tfm_list - crypto.c:key_tfm_list_mutex - inode.c:ecryptfs_getxattr() - main.c:ecryptfs_init_persistent_file() - remove the no longer used mmap.c:ecryptfs_lower_page_cache - #if 0 the unused read_write.c:ecryptfs_read() Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: Michael Halcrow <mhalcrow@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ecryptfs/crypto.c')
-rw-r--r--fs/ecryptfs/crypto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c
index f8ef0af919e7..5e7d018a3486 100644
--- a/fs/ecryptfs/crypto.c
+++ b/fs/ecryptfs/crypto.c
@@ -376,8 +376,8 @@ out:
376 * 376 *
377 * Convert an eCryptfs page index into a lower byte offset 377 * Convert an eCryptfs page index into a lower byte offset
378 */ 378 */
379void ecryptfs_lower_offset_for_extent(loff_t *offset, loff_t extent_num, 379static void ecryptfs_lower_offset_for_extent(loff_t *offset, loff_t extent_num,
380 struct ecryptfs_crypt_stat *crypt_stat) 380 struct ecryptfs_crypt_stat *crypt_stat)
381{ 381{
382 (*offset) = ((crypt_stat->extent_size 382 (*offset) = ((crypt_stat->extent_size
383 * crypt_stat->num_header_extents_at_front) 383 * crypt_stat->num_header_extents_at_front)
@@ -1802,8 +1802,8 @@ out:
1802} 1802}
1803 1803
1804struct kmem_cache *ecryptfs_key_tfm_cache; 1804struct kmem_cache *ecryptfs_key_tfm_cache;
1805struct list_head key_tfm_list; 1805static struct list_head key_tfm_list;
1806struct mutex key_tfm_list_mutex; 1806static struct mutex key_tfm_list_mutex;
1807 1807
1808int ecryptfs_init_crypto(void) 1808int ecryptfs_init_crypto(void)
1809{ 1809{