inode.c (bc030d6cb9532877c1c5a3f5e7123344fa24a285) inode.c (fa0d7e3de6d6fc5004ad9dea0dd6b286af8f03e9)
1/*
2 * linux/fs/minix/inode.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 *
6 * Copyright (C) 1996 Gertjan van Wingerde
7 * Minix V2 fs support.
8 *

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

63{
64 struct minix_inode_info *ei;
65 ei = (struct minix_inode_info *)kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL);
66 if (!ei)
67 return NULL;
68 return &ei->vfs_inode;
69}
70
1/*
2 * linux/fs/minix/inode.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 *
6 * Copyright (C) 1996 Gertjan van Wingerde
7 * Minix V2 fs support.
8 *

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

63{
64 struct minix_inode_info *ei;
65 ei = (struct minix_inode_info *)kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL);
66 if (!ei)
67 return NULL;
68 return &ei->vfs_inode;
69}
70
71static void minix_destroy_inode(struct inode *inode)
71static void minix_i_callback(struct rcu_head *head)
72{
72{
73 struct inode *inode = container_of(head, struct inode, i_rcu);
74 INIT_LIST_HEAD(&inode->i_dentry);
73 kmem_cache_free(minix_inode_cachep, minix_i(inode));
74}
75
75 kmem_cache_free(minix_inode_cachep, minix_i(inode));
76}
77
78static void minix_destroy_inode(struct inode *inode)
79{
80 call_rcu(&inode->i_rcu, minix_i_callback);
81}
82
76static void init_once(void *foo)
77{
78 struct minix_inode_info *ei = (struct minix_inode_info *) foo;
79
80 inode_init_once(&ei->vfs_inode);
81}
82
83static int init_inodecache(void)

--- 572 unchanged lines hidden ---
83static void init_once(void *foo)
84{
85 struct minix_inode_info *ei = (struct minix_inode_info *) foo;
86
87 inode_init_once(&ei->vfs_inode);
88}
89
90static int init_inodecache(void)

--- 572 unchanged lines hidden ---