diff options
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/inode.c b/fs/inode.c index 524a32c2b0c6..86c612b92c6f 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -685,8 +685,8 @@ int invalidate_inodes(struct super_block *sb, bool kill_dirty) | |||
685 | * LRU does not have strict ordering. Hence we don't want to reclaim inodes | 685 | * LRU does not have strict ordering. Hence we don't want to reclaim inodes |
686 | * with this flag set because they are the inodes that are out of order. | 686 | * with this flag set because they are the inodes that are out of order. |
687 | */ | 687 | */ |
688 | static enum lru_status | 688 | static enum lru_status inode_lru_isolate(struct list_head *item, |
689 | inode_lru_isolate(struct list_head *item, spinlock_t *lru_lock, void *arg) | 689 | struct list_lru_one *lru, spinlock_t *lru_lock, void *arg) |
690 | { | 690 | { |
691 | struct list_head *freeable = arg; | 691 | struct list_head *freeable = arg; |
692 | struct inode *inode = container_of(item, struct inode, i_lru); | 692 | struct inode *inode = container_of(item, struct inode, i_lru); |
@@ -704,7 +704,7 @@ inode_lru_isolate(struct list_head *item, spinlock_t *lru_lock, void *arg) | |||
704 | */ | 704 | */ |
705 | if (atomic_read(&inode->i_count) || | 705 | if (atomic_read(&inode->i_count) || |
706 | (inode->i_state & ~I_REFERENCED)) { | 706 | (inode->i_state & ~I_REFERENCED)) { |
707 | list_del_init(&inode->i_lru); | 707 | list_lru_isolate(lru, &inode->i_lru); |
708 | spin_unlock(&inode->i_lock); | 708 | spin_unlock(&inode->i_lock); |
709 | this_cpu_dec(nr_unused); | 709 | this_cpu_dec(nr_unused); |
710 | return LRU_REMOVED; | 710 | return LRU_REMOVED; |
@@ -738,7 +738,7 @@ inode_lru_isolate(struct list_head *item, spinlock_t *lru_lock, void *arg) | |||
738 | 738 | ||
739 | WARN_ON(inode->i_state & I_NEW); | 739 | WARN_ON(inode->i_state & I_NEW); |
740 | inode->i_state |= I_FREEING; | 740 | inode->i_state |= I_FREEING; |
741 | list_move(&inode->i_lru, freeable); | 741 | list_lru_isolate_move(lru, &inode->i_lru, freeable); |
742 | spin_unlock(&inode->i_lock); | 742 | spin_unlock(&inode->i_lock); |
743 | 743 | ||
744 | this_cpu_dec(nr_unused); | 744 | this_cpu_dec(nr_unused); |