]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/dlm/dlm_internal.h
dlm: avoid scanning unchanged toss lists
authorDavid Teigland <teigland@redhat.com>
Mon, 7 Jan 2013 17:03:42 +0000 (11:03 -0600)
committerDavid Teigland <teigland@redhat.com>
Mon, 7 Jan 2013 18:02:49 +0000 (12:02 -0600)
commitf11722834605a155022a8098ad7d8adacf44b22f
tree9a2004fa6c4a925971c338db5af8f643a990f2d8
parent2318aa272072f6906de8e00a332da1485506b3c5
dlm: avoid scanning unchanged toss lists

Keep track of whether a toss list contains any
shrinkable rsbs.  If not, dlm_scand can avoid
scanning the list for rsbs to shrink.  Unnecessary
scanning can otherwise waste a lot of time because
the toss lists can contain a large number of rsbs
that are non-shrinkable (directory records).

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dlm_internal.h
fs/dlm/lock.c