]> err.no Git - linux-2.6/commitdiff
ocfs2: move lockres qstr next to hlist_node structure
authorMark Fasheh <mark.fasheh@oracle.com>
Mon, 6 Mar 2006 23:36:17 +0000 (15:36 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Mon, 26 Jun 2006 21:42:39 +0000 (14:42 -0700)
Gains us a bit of performance on loads which heavily hit the lockres hash.
Patch suggested by Daniel Phillips <phillips@google.com>.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/dlm/dlmcommon.h

index 88cc43df18f11205c7f11f7344fe4b4c14d19e8f..1c05d485e01977ddd8562f91bf1690c404e154fb 100644 (file)
@@ -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];
 };