GFS2: Use generic list_lru for quota
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 4 Nov 2013 10:15:08 +0000 (10:15 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 4 Nov 2013 11:17:49 +0000 (11:17 +0000)
commit2147dbfd059eb7fefcfd5934f74f25f0693d4a1f
tree8cc89a827bcc48f529698bef65eb61216562425a
parent7d80823e1d83e35977d77ae201bf63af3317ad0a
GFS2: Use generic list_lru for quota

By using the generic list_lru code, we can now separate the
per sb quota list locking from the lru locking. The lru
lock is made into the inner-most lock.

As a result of this new lock order, we may occasionally see
items on the per-sb quota list which are "dead" so that the
two places where we traverse that list are updated to take
account of that.

As a result of this patch, the gfs2 quota shrinker is now
NUMA zone aware, and we are also laying the foundations for
further improvments in due course.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Abhijith Das <adas@redhat.com>
Tested-by: Abhijith Das <adas@redhat.com>
Cc: Dave Chinner <dchinner@redhat.com>
fs/gfs2/incore.h
fs/gfs2/main.c
fs/gfs2/quota.c
fs/gfs2/quota.h