Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262068
b: refs/heads/master
c: f2ee7ab
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Al Viro committed Aug 1, 2011
1 parent 041c01b commit 5e69067
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 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: b12362bdb61a230a67daa77bcd2a11e59b2802e1
refs/heads/master: f2ee7abf4c40c8e6bffced923a7c01ea2d1f6c97
6 changes: 3 additions & 3 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,20 +399,20 @@ void __insert_inode_hash(struct inode *inode, unsigned long hashval)
EXPORT_SYMBOL(__insert_inode_hash);

/**
* remove_inode_hash - remove an inode from the hash
* __remove_inode_hash - remove an inode from the hash
* @inode: inode to unhash
*
* Remove an inode from the superblock.
*/
void remove_inode_hash(struct inode *inode)
void __remove_inode_hash(struct inode *inode)
{
spin_lock(&inode_hash_lock);
spin_lock(&inode->i_lock);
hlist_del_init(&inode->i_hash);
spin_unlock(&inode->i_lock);
spin_unlock(&inode_hash_lock);
}
EXPORT_SYMBOL(remove_inode_hash);
EXPORT_SYMBOL(__remove_inode_hash);

void end_writeback(struct inode *inode)
{
Expand Down
9 changes: 8 additions & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2317,11 +2317,18 @@ extern int should_remove_suid(struct dentry *);
extern int file_remove_suid(struct file *);

extern void __insert_inode_hash(struct inode *, unsigned long hashval);
extern void remove_inode_hash(struct inode *);
static inline void insert_inode_hash(struct inode *inode)
{
__insert_inode_hash(inode, inode->i_ino);
}

extern void __remove_inode_hash(struct inode *);
static inline void remove_inode_hash(struct inode *inode)
{
if (!inode_unhashed(inode))
__remove_inode_hash(inode);
}

extern void inode_sb_list_add(struct inode *inode);

#ifdef CONFIG_BLOCK
Expand Down

0 comments on commit 5e69067

Please sign in to comment.