super.c (7022b15e2a9f878fd5184586064c63352c3dd225) super.c (dca3c33652e437ed02c30ed3eca3cecd0cc00838)
1/*
2 * linux/fs/affs/inode.c
3 *
4 * (c) 1996 Hans-Joachim Widmaier - Rewritten
5 *
6 * (C) 1993 Ray Burr - Modified for Amiga FFS filesystem.
7 *
8 * (C) 1992 Eric Youngdale Modified for ISO 9660 filesystem.

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

66
67 pr_debug("AFFS: write_super() at %lu, clean=%d\n", get_seconds(), clean);
68}
69
70static struct kmem_cache * affs_inode_cachep;
71
72static struct inode *affs_alloc_inode(struct super_block *sb)
73{
1/*
2 * linux/fs/affs/inode.c
3 *
4 * (c) 1996 Hans-Joachim Widmaier - Rewritten
5 *
6 * (C) 1993 Ray Burr - Modified for Amiga FFS filesystem.
7 *
8 * (C) 1992 Eric Youngdale Modified for ISO 9660 filesystem.

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

66
67 pr_debug("AFFS: write_super() at %lu, clean=%d\n", get_seconds(), clean);
68}
69
70static struct kmem_cache * affs_inode_cachep;
71
72static struct inode *affs_alloc_inode(struct super_block *sb)
73{
74 struct affs_inode_info *ei;
75 ei = (struct affs_inode_info *)kmem_cache_alloc(affs_inode_cachep, GFP_KERNEL);
76 if (!ei)
74 struct affs_inode_info *i;
75
76 i = kmem_cache_alloc(affs_inode_cachep, GFP_KERNEL);
77 if (!i)
77 return NULL;
78 return NULL;
78 ei->vfs_inode.i_version = 1;
79 return &ei->vfs_inode;
79
80 i->vfs_inode.i_version = 1;
81 i->i_lc = NULL;
82 i->i_ext_bh = NULL;
83 i->i_pa_cnt = 0;
84
85 return &i->vfs_inode;
80}
81
82static void affs_destroy_inode(struct inode *inode)
83{
84 kmem_cache_free(affs_inode_cachep, AFFS_I(inode));
85}
86
87static void init_once(struct kmem_cache *cachep, void *foo)

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

109{
110 kmem_cache_destroy(affs_inode_cachep);
111}
112
113static const struct super_operations affs_sops = {
114 .alloc_inode = affs_alloc_inode,
115 .destroy_inode = affs_destroy_inode,
116 .write_inode = affs_write_inode,
86}
87
88static void affs_destroy_inode(struct inode *inode)
89{
90 kmem_cache_free(affs_inode_cachep, AFFS_I(inode));
91}
92
93static void init_once(struct kmem_cache *cachep, void *foo)

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

115{
116 kmem_cache_destroy(affs_inode_cachep);
117}
118
119static const struct super_operations affs_sops = {
120 .alloc_inode = affs_alloc_inode,
121 .destroy_inode = affs_destroy_inode,
122 .write_inode = affs_write_inode,
117 .put_inode = affs_put_inode,
118 .drop_inode = affs_drop_inode,
119 .delete_inode = affs_delete_inode,
120 .clear_inode = affs_clear_inode,
121 .put_super = affs_put_super,
122 .write_super = affs_write_super,
123 .statfs = affs_statfs,
124 .remount_fs = affs_remount,
125 .show_options = generic_show_options,
126};

--- 459 unchanged lines hidden ---
123 .delete_inode = affs_delete_inode,
124 .clear_inode = affs_clear_inode,
125 .put_super = affs_put_super,
126 .write_super = affs_write_super,
127 .statfs = affs_statfs,
128 .remount_fs = affs_remount,
129 .show_options = generic_show_options,
130};

--- 459 unchanged lines hidden ---