GFS2: Don't put unlikely reclaim candidates on the reclaim list.
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 10 Jul 2009 23:04:24 +0000 (18:04 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Jul 2009 10:00:09 +0000 (11:00 +0100)
commit8ff22a6f9bdaac87c0eeb1d56c736181f11b4221
tree00b0ad7afe45497d251adb244baf6875a0744985
parent1e19a19584b332eb92a573b66b7342fb97e67507
GFS2: Don't put unlikely reclaim candidates on the reclaim list.

GFS2 was placing far too many glocks on the reclaim list that were not good
candidates for freeing up from cache.  These locks would sit there and
repeatedly get scanned to see if they could be reclaimed, wasting a lot
of time when there was memory pressure. This fix does more checks on the
locks to see if they are actually likely to be removable from cache.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c