summaryrefslogtreecommitdiffstats
path: root/fs/ufs/super.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-01-10 14:23:41 -0800
committerTony Lindgren <tony@atomide.com>2011-01-10 14:23:41 -0800
commit274353674dd0337bdeeaee08a9f2047777b07ab0 (patch)
treeb788d77dd7c0e8f27bbcc89fc742c212c28872c0 /fs/ufs/super.c
parent1740d483ba4d79f9fa6984dccd7152b6b208f1bf (diff)
parentd7cd5c73cec2dfa9f259a2adcf802c9f8fcc125f (diff)
downloadblackbird-op-linux-274353674dd0337bdeeaee08a9f2047777b07ab0.tar.gz
blackbird-op-linux-274353674dd0337bdeeaee08a9f2047777b07ab0.zip
Merge branch 'ehci-omap-clock' into omap-fixes
Diffstat (limited to 'fs/ufs/super.c')
-rw-r--r--fs/ufs/super.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index 2c47daed56da..2c61ac5d4e48 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -1412,11 +1412,18 @@ static struct inode *ufs_alloc_inode(struct super_block *sb)
return &ei->vfs_inode;
}
-static void ufs_destroy_inode(struct inode *inode)
+static void ufs_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(ufs_inode_cachep, UFS_I(inode));
}
+static void ufs_destroy_inode(struct inode *inode)
+{
+ call_rcu(&inode->i_rcu, ufs_i_callback);
+}
+
static void init_once(void *foo)
{
struct ufs_inode_info *ei = (struct ufs_inode_info *) foo;
OpenPOWER on IntegriCloud