inode.c (bc030d6cb9532877c1c5a3f5e7123344fa24a285) | inode.c (fa0d7e3de6d6fc5004ad9dea0dd6b286af8f03e9) |
---|---|
1/* 2 * fs/bfs/inode.c 3 * BFS superblock and inode operations. 4 * Copyright (C) 1999-2006 Tigran Aivazian <tigran@aivazian.fsnet.co.uk> 5 * From fs/minix, Copyright (C) 1991, 1992 Linus Torvalds. 6 * 7 * Made endianness-clean by Andrew Stribblehill <ads@wompom.org>, 2005. 8 */ --- 234 unchanged lines hidden (view full) --- 243{ 244 struct bfs_inode_info *bi; 245 bi = kmem_cache_alloc(bfs_inode_cachep, GFP_KERNEL); 246 if (!bi) 247 return NULL; 248 return &bi->vfs_inode; 249} 250 | 1/* 2 * fs/bfs/inode.c 3 * BFS superblock and inode operations. 4 * Copyright (C) 1999-2006 Tigran Aivazian <tigran@aivazian.fsnet.co.uk> 5 * From fs/minix, Copyright (C) 1991, 1992 Linus Torvalds. 6 * 7 * Made endianness-clean by Andrew Stribblehill <ads@wompom.org>, 2005. 8 */ --- 234 unchanged lines hidden (view full) --- 243{ 244 struct bfs_inode_info *bi; 245 bi = kmem_cache_alloc(bfs_inode_cachep, GFP_KERNEL); 246 if (!bi) 247 return NULL; 248 return &bi->vfs_inode; 249} 250 |
251static void bfs_destroy_inode(struct inode *inode) | 251static void bfs_i_callback(struct rcu_head *head) |
252{ | 252{ |
253 struct inode *inode = container_of(head, struct inode, i_rcu); 254 INIT_LIST_HEAD(&inode->i_dentry); |
|
253 kmem_cache_free(bfs_inode_cachep, BFS_I(inode)); 254} 255 | 255 kmem_cache_free(bfs_inode_cachep, BFS_I(inode)); 256} 257 |
258static void bfs_destroy_inode(struct inode *inode) 259{ 260 call_rcu(&inode->i_rcu, bfs_i_callback); 261} 262 |
|
256static void init_once(void *foo) 257{ 258 struct bfs_inode_info *bi = foo; 259 260 inode_init_once(&bi->vfs_inode); 261} 262 263static int init_inodecache(void) --- 226 unchanged lines hidden --- | 263static void init_once(void *foo) 264{ 265 struct bfs_inode_info *bi = foo; 266 267 inode_init_once(&bi->vfs_inode); 268} 269 270static int init_inodecache(void) --- 226 unchanged lines hidden --- |