Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4206
b: refs/heads/master
c: cb2c023
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh authored and Linus Torvalds committed Jul 8, 2005
1 parent e22a4fe commit 71cdea5
Show file tree
Hide file tree
Showing 3 changed files with 5 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: ca3f5a95b7d04eef0f88464f8d3299c1c01e8e13
refs/heads/master: cb2c0233755429037462e16ea0d5497a0092738c
4 changes: 3 additions & 1 deletion trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,14 +1052,16 @@ static void generic_forget_inode(struct inode *inode)
* inode when the usage count drops to zero, and
* i_nlink is zero.
*/
static void generic_drop_inode(struct inode *inode)
void generic_drop_inode(struct inode *inode)
{
if (!inode->i_nlink)
generic_delete_inode(inode);
else
generic_forget_inode(inode);
}

EXPORT_SYMBOL_GPL(generic_drop_inode);

/*
* Called when we're dropping the last reference
* to an inode.
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,7 @@ extern struct inode * igrab(struct inode *);
extern ino_t iunique(struct super_block *, ino_t);
extern int inode_needs_sync(struct inode *inode);
extern void generic_delete_inode(struct inode *inode);
extern void generic_drop_inode(struct inode *inode);

extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
int (*test)(struct inode *, void *), void *data);
Expand Down

0 comments on commit 71cdea5

Please sign in to comment.