diff options
author | David Teigland <teigland@redhat.com> | 2012-11-14 13:46:53 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-11-15 05:16:59 -0500 |
commit | dba2d70c5dc520fdb569d1fd8dbd45c0e330253e (patch) | |
tree | 35cee899f98a6d863d48ecc2dc891b9dbb38b27e /fs/gfs2/incore.h | |
parent | fb6791d100d1bba20b5cdbc4912e1f7086ec60f8 (diff) |
GFS2: only use lvb on glocks that need it
Save the effort of allocating, reading and writing
the lvb for most glocks that do not use it.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index a35ef5cd1480..bd577fc59e0b 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h | |||
@@ -216,6 +216,7 @@ struct gfs2_glock_operations { | |||
216 | const int go_type; | 216 | const int go_type; |
217 | const unsigned long go_flags; | 217 | const unsigned long go_flags; |
218 | #define GLOF_ASPACE 1 | 218 | #define GLOF_ASPACE 1 |
219 | #define GLOF_LVB 2 | ||
219 | }; | 220 | }; |
220 | 221 | ||
221 | enum { | 222 | enum { |
@@ -321,7 +322,7 @@ struct gfs2_glock { | |||
321 | ktime_t gl_dstamp; | 322 | ktime_t gl_dstamp; |
322 | struct gfs2_lkstats gl_stats; | 323 | struct gfs2_lkstats gl_stats; |
323 | struct dlm_lksb gl_lksb; | 324 | struct dlm_lksb gl_lksb; |
324 | char gl_lvb[32]; | 325 | char *gl_lvb; |
325 | unsigned long gl_tchange; | 326 | unsigned long gl_tchange; |
326 | void *gl_object; | 327 | void *gl_object; |
327 | 328 | ||