Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207583
b: refs/heads/master
c: 3014083
h: refs/heads/master
i:
  207581: 20571c7
  207579: a6f0992
  207575: bc981da
  207567: 4f00bae
  207551: b9f742e
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent 55aafc0 commit 42f1651
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 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: 644da5960ded137c339bc69bc2aeac54f73aad59
refs/heads/master: 30140837f256558c943636245ab90897a9455a70
28 changes: 4 additions & 24 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,29 +306,6 @@ void end_writeback(struct inode *inode)
}
EXPORT_SYMBOL(end_writeback);

/**
* clear_inode - clear an inode
* @inode: inode to clear
*
* This is called by the filesystem to tell us
* that the inode is no longer useful. We just
* terminate it with extreme prejudice.
*/
void clear_inode(struct inode *inode)
{
might_sleep();
invalidate_inode_buffers(inode);

BUG_ON(inode->i_data.nrpages);
BUG_ON(!(inode->i_state & I_FREEING));
BUG_ON(inode->i_state & I_CLEAR);
inode_sync_wait(inode);
if (inode->i_sb->s_op->clear_inode)
inode->i_sb->s_op->clear_inode(inode);
inode->i_state = I_FREEING | I_CLEAR;
}
EXPORT_SYMBOL(clear_inode);

static void evict(struct inode *inode)
{
const struct super_operations *op = inode->i_sb->s_op;
Expand All @@ -338,7 +315,10 @@ static void evict(struct inode *inode)
} else {
if (inode->i_data.nrpages)
truncate_inode_pages(&inode->i_data, 0);
clear_inode(inode);
invalidate_inode_buffers(inode);
end_writeback(inode);
if (op->clear_inode)
op->clear_inode(inode);
}
if (S_ISBLK(inode->i_mode) && inode->i_bdev)
bd_forget(inode);
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,6 @@ extern void unlock_new_inode(struct inode *);

extern void __iget(struct inode * inode);
extern void iget_failed(struct inode *);
extern void clear_inode(struct inode *);
extern void end_writeback(struct inode *);
extern void destroy_inode(struct inode *);
extern void __destroy_inode(struct inode *);
Expand Down

0 comments on commit 42f1651

Please sign in to comment.