]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: use percpu counter for extent cache count
authorTheodore Ts'o <tytso@mit.edu>
Sat, 2 Mar 2013 15:27:46 +0000 (10:27 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Mar 2013 15:27:46 +0000 (10:27 -0500)
commit9f8fcd806567e7e43cc93c8b4507863754241fb2
tree8202e2ba849b72236ea186cfbfd4c4098aa7d699
parentc9e91a631460d27b1b83a74bd9f5e8b92b6c230d
ext4: use percpu counter for extent cache count

Use a percpu counter rather than atomic types for shrinker accounting.
There's no need for ultimate accuracy in the shrinker, so this
should come a little more cheaply.  The percpu struct is somewhat
large, but there was a big gap before the cache-aligned
s_es_lru_lock anyway, and it fits nicely in there.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents_status.c
fs/ext4/super.c