aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index f04d04af84f2..e8f65290e836 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -408,16 +408,13 @@ writeback_single_inode(struct inode *inode, struct writeback_control *wbc)
408 * completion. 408 * completion.
409 */ 409 */
410 redirty_tail(inode); 410 redirty_tail(inode);
411 } else if (atomic_read(&inode->i_count)) {
412 /*
413 * The inode is clean, inuse
414 */
415 list_move(&inode->i_list, &inode_in_use);
416 } else { 411 } else {
417 /* 412 /*
418 * The inode is clean, unused 413 * The inode is clean. At this point we either have
414 * a reference to the inode or it's on it's way out.
415 * No need to add it back to the LRU.
419 */ 416 */
420 list_move(&inode->i_list, &inode_unused); 417 list_del_init(&inode->i_list);
421 } 418 }
422 } 419 }
423 inode_sync_complete(inode); 420 inode_sync_complete(inode);