Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hostfs: switch to ->free_inode()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 08ccfc5c 08ab2293

+2 -8
+2 -8
fs/hostfs/hostfs_kern.c
··· 243 243 } 244 244 } 245 245 246 - static void hostfs_i_callback(struct rcu_head *head) 246 + static void hostfs_free_inode(struct inode *inode) 247 247 { 248 - struct inode *inode = container_of(head, struct inode, i_rcu); 249 248 kfree(HOSTFS_I(inode)); 250 - } 251 - 252 - static void hostfs_destroy_inode(struct inode *inode) 253 - { 254 - call_rcu(&inode->i_rcu, hostfs_i_callback); 255 249 } 256 250 257 251 static int hostfs_show_options(struct seq_file *seq, struct dentry *root) ··· 264 270 265 271 static const struct super_operations hostfs_sbops = { 266 272 .alloc_inode = hostfs_alloc_inode, 267 - .destroy_inode = hostfs_destroy_inode, 273 + .free_inode = hostfs_free_inode, 268 274 .evict_inode = hostfs_evict_inode, 269 275 .statfs = hostfs_statfs, 270 276 .show_options = hostfs_show_options,