aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/inode.c')
-rw-r--r--fs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 501fc5daf6f4..02c0fa5e16a4 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -486,7 +486,7 @@ void __remove_inode_hash(struct inode *inode)
486} 486}
487EXPORT_SYMBOL(__remove_inode_hash); 487EXPORT_SYMBOL(__remove_inode_hash);
488 488
489void end_writeback(struct inode *inode) 489void clear_inode(struct inode *inode)
490{ 490{
491 might_sleep(); 491 might_sleep();
492 /* 492 /*
@@ -503,7 +503,7 @@ void end_writeback(struct inode *inode)
503 /* don't need i_lock here, no concurrent mods to i_state */ 503 /* don't need i_lock here, no concurrent mods to i_state */
504 inode->i_state = I_FREEING | I_CLEAR; 504 inode->i_state = I_FREEING | I_CLEAR;
505} 505}
506EXPORT_SYMBOL(end_writeback); 506EXPORT_SYMBOL(clear_inode);
507 507
508/* 508/*
509 * Free the inode passed in, removing it from the lists it is still connected 509 * Free the inode passed in, removing it from the lists it is still connected
@@ -537,7 +537,7 @@ static void evict(struct inode *inode)
537 } else { 537 } else {
538 if (inode->i_data.nrpages) 538 if (inode->i_data.nrpages)
539 truncate_inode_pages(&inode->i_data, 0); 539 truncate_inode_pages(&inode->i_data, 0);
540 end_writeback(inode); 540 clear_inode(inode);
541 } 541 }
542 if (S_ISBLK(inode->i_mode) && inode->i_bdev) 542 if (S_ISBLK(inode->i_mode) && inode->i_bdev)
543 bd_forget(inode); 543 bd_forget(inode);