From f11722834605a155022a8098ad7d8adacf44b22f Mon Sep 17 00:00:00 2001 From: David Teigland Date: Mon, 7 Jan 2013 11:03:42 -0600 Subject: 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 --- fs/dlm/dlm_internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fs/dlm/dlm_internal.h') diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h index 77c0f70f8fe8..e7665c31f7b1 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h @@ -96,10 +96,13 @@ do { \ } +#define DLM_RTF_SHRINK 0x00000001 + struct dlm_rsbtable { struct rb_root keep; struct rb_root toss; spinlock_t lock; + uint32_t flags; }; -- cgit v1.2.3