super.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) super.c (57db4e8d73ef2b5e94a3f412108dff2576670a8a)
1/**
2 * eCryptfs: Linux filesystem encryption layer
3 *
4 * Copyright (C) 1997-2003 Erez Zadok
5 * Copyright (C) 2001-2003 Stony Brook University
6 * Copyright (C) 2004-2006 International Business Machines Corp.
7 * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com>
8 * Michael C. Thompson <mcthomps@us.ibm.com>

--- 41 unchanged lines hidden (view full) ---

50{
51 struct ecryptfs_inode_info *inode_info;
52 struct inode *inode = NULL;
53
54 inode_info = kmem_cache_alloc(ecryptfs_inode_info_cache, GFP_KERNEL);
55 if (unlikely(!inode_info))
56 goto out;
57 ecryptfs_init_crypt_stat(&inode_info->crypt_stat);
1/**
2 * eCryptfs: Linux filesystem encryption layer
3 *
4 * Copyright (C) 1997-2003 Erez Zadok
5 * Copyright (C) 2001-2003 Stony Brook University
6 * Copyright (C) 2004-2006 International Business Machines Corp.
7 * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com>
8 * Michael C. Thompson <mcthomps@us.ibm.com>

--- 41 unchanged lines hidden (view full) ---

50{
51 struct ecryptfs_inode_info *inode_info;
52 struct inode *inode = NULL;
53
54 inode_info = kmem_cache_alloc(ecryptfs_inode_info_cache, GFP_KERNEL);
55 if (unlikely(!inode_info))
56 goto out;
57 ecryptfs_init_crypt_stat(&inode_info->crypt_stat);
58 mutex_init(&inode_info->lower_file_mutex);
59 inode_info->lower_file = NULL;
60 inode = &inode_info->vfs_inode;
61out:
62 return inode;
63}
64
65static void ecryptfs_i_callback(struct rcu_head *head)
66{

--- 126 unchanged lines hidden (view full) ---

193 seq_printf(m, ",ecryptfs_mount_auth_tok_only");
194
195 return 0;
196}
197
198const struct super_operations ecryptfs_sops = {
199 .alloc_inode = ecryptfs_alloc_inode,
200 .destroy_inode = ecryptfs_destroy_inode,
58 inode_info->lower_file = NULL;
59 inode = &inode_info->vfs_inode;
60out:
61 return inode;
62}
63
64static void ecryptfs_i_callback(struct rcu_head *head)
65{

--- 126 unchanged lines hidden (view full) ---

192 seq_printf(m, ",ecryptfs_mount_auth_tok_only");
193
194 return 0;
195}
196
197const struct super_operations ecryptfs_sops = {
198 .alloc_inode = ecryptfs_alloc_inode,
199 .destroy_inode = ecryptfs_destroy_inode,
201 .drop_inode = generic_delete_inode,
200 .drop_inode = generic_drop_inode,
202 .statfs = ecryptfs_statfs,
203 .remount_fs = NULL,
204 .evict_inode = ecryptfs_evict_inode,
205 .show_options = ecryptfs_show_options
206};
201 .statfs = ecryptfs_statfs,
202 .remount_fs = NULL,
203 .evict_inode = ecryptfs_evict_inode,
204 .show_options = ecryptfs_show_options
205};