Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229037
b: refs/heads/master
c: d95b7aa
h: refs/heads/master
i:
  229035: a3ff194
v: v3
  • Loading branch information
Dave Chinner authored and Dave Chinner committed Dec 16, 2010
1 parent 57f1f9c commit 52d604b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e857567dbbfe14dd6cc3f7414671b047b1ff5c7
refs/heads/master: d95b7aaf9ab6738bef1ebcc52ab66563085e44ac
14 changes: 13 additions & 1 deletion trunk/fs/xfs/xfs_iget.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ xfs_inode_alloc(
return ip;
}

void
__xfs_inode_free(
struct rcu_head *head)
{
struct inode *inode = container_of((void *)head,
struct inode, i_dentry);
struct xfs_inode *ip = XFS_I(inode);

INIT_LIST_HEAD(&inode->i_dentry);
kmem_zone_free(xfs_inode_zone, ip);
}

void
xfs_inode_free(
struct xfs_inode *ip)
Expand Down Expand Up @@ -147,7 +159,7 @@ xfs_inode_free(
ASSERT(!spin_is_locked(&ip->i_flags_lock));
ASSERT(completion_done(&ip->i_flush));

kmem_zone_free(xfs_inode_zone, ip);
call_rcu((struct rcu_head *)&VFS_I(ip)->i_dentry, __xfs_inode_free);
}

/*
Expand Down

0 comments on commit 52d604b

Please sign in to comment.