X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=fs%2Fhfs%2Fsuper.c;h=ef4ee5716abe0309d42b0c7507216a34b2276e75;hb=fa0d7e3de6d6fc5004ad9dea0dd6b286af8f03e9;hp=4824c27cebb8c2e49aa61edc33f2ec94f984ceab;hpb=77812a1ef139d84270d27faacc0630c887411013;p=deliverable%2Flinux.git diff --git a/fs/hfs/super.c b/fs/hfs/super.c index 4824c27cebb8..ef4ee5716abe 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c @@ -167,11 +167,18 @@ static struct inode *hfs_alloc_inode(struct super_block *sb) return i ? &i->vfs_inode : NULL; } -static void hfs_destroy_inode(struct inode *inode) +static void hfs_i_callback(struct rcu_head *head) { + struct inode *inode = container_of(head, struct inode, i_rcu); + INIT_LIST_HEAD(&inode->i_dentry); kmem_cache_free(hfs_inode_cachep, HFS_I(inode)); } +static void hfs_destroy_inode(struct inode *inode) +{ + call_rcu(&inode->i_rcu, hfs_i_callback); +} + static const struct super_operations hfs_super_operations = { .alloc_inode = hfs_alloc_inode, .destroy_inode = hfs_destroy_inode,