From: Mark Fasheh Date: Mon, 6 Mar 2006 23:36:17 +0000 (-0800) Subject: ocfs2: move lockres qstr next to hlist_node structure X-Git-Tag: v2.6.18-rc1~594^2~55 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=65c491d833a06fd0d1383297590772c75d28155c;p=linux-2.6-omap-h63xx.git ocfs2: move lockres qstr next to hlist_node structure Gains us a bit of performance on loads which heavily hit the lockres hash. Patch suggested by Daniel Phillips . Signed-off-by: Mark Fasheh --- diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 88cc43df18f..1c05d485e01 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h @@ -216,6 +216,7 @@ struct dlm_lock_resource /* WARNING: Please see the comment in dlm_init_lockres before * adding fields here. */ struct hlist_node hash_node; + struct qstr lockname; struct kref refs; /* please keep these next 3 in this order @@ -238,7 +239,6 @@ struct dlm_lock_resource wait_queue_head_t wq; u8 owner; //node which owns the lock resource, or unknown u16 state; - struct qstr lockname; char lvb[DLM_LVB_LEN]; };