aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/inode.c')
-rw-r--r--fs/inode.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/inode.c b/fs/inode.c
index e53796a6d880..0bf9f0444a96 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -451,15 +451,14 @@ static void prune_icache(int nr_to_scan)
451 nr_pruned++; 451 nr_pruned++;
452 } 452 }
453 inodes_stat.nr_unused -= nr_pruned; 453 inodes_stat.nr_unused -= nr_pruned;
454 if (current_is_kswapd())
455 __count_vm_events(KSWAPD_INODESTEAL, reap);
456 else
457 __count_vm_events(PGINODESTEAL, reap);
454 spin_unlock(&inode_lock); 458 spin_unlock(&inode_lock);
455 459
456 dispose_list(&freeable); 460 dispose_list(&freeable);
457 mutex_unlock(&iprune_mutex); 461 mutex_unlock(&iprune_mutex);
458
459 if (current_is_kswapd())
460 mod_page_state(kswapd_inodesteal, reap);
461 else
462 mod_page_state(pginodesteal, reap);
463} 462}
464 463
465/* 464/*