diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-03-06 18:36:17 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-06-26 17:42:39 -0400 |
commit | 65c491d833a06fd0d1383297590772c75d28155c (patch) | |
tree | d9b4d9697525ef89a6e9c2489a005a584e471abf /fs/ocfs2/dlm/dlmcommon.h | |
parent | da206c9e68cb93fcab43592d46276c02889c1250 (diff) |
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 <phillips@google.com>.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 88cc43df18f1..1c05d485e019 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -216,6 +216,7 @@ struct dlm_lock_resource | |||
216 | /* WARNING: Please see the comment in dlm_init_lockres before | 216 | /* WARNING: Please see the comment in dlm_init_lockres before |
217 | * adding fields here. */ | 217 | * adding fields here. */ |
218 | struct hlist_node hash_node; | 218 | struct hlist_node hash_node; |
219 | struct qstr lockname; | ||
219 | struct kref refs; | 220 | struct kref refs; |
220 | 221 | ||
221 | /* please keep these next 3 in this order | 222 | /* please keep these next 3 in this order |
@@ -238,7 +239,6 @@ struct dlm_lock_resource | |||
238 | wait_queue_head_t wq; | 239 | wait_queue_head_t wq; |
239 | u8 owner; //node which owns the lock resource, or unknown | 240 | u8 owner; //node which owns the lock resource, or unknown |
240 | u16 state; | 241 | u16 state; |
241 | struct qstr lockname; | ||
242 | char lvb[DLM_LVB_LEN]; | 242 | char lvb[DLM_LVB_LEN]; |
243 | }; | 243 | }; |
244 | 244 | ||