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/glops.c | |
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/glops.c')
-rw-r--r-- | fs/gfs2/glops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index e86fe26c12d2..78d4184ffc7d 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c | |||
@@ -552,7 +552,7 @@ const struct gfs2_glock_operations gfs2_rgrp_glops = { | |||
552 | .go_unlock = gfs2_rgrp_go_unlock, | 552 | .go_unlock = gfs2_rgrp_go_unlock, |
553 | .go_dump = gfs2_rgrp_dump, | 553 | .go_dump = gfs2_rgrp_dump, |
554 | .go_type = LM_TYPE_RGRP, | 554 | .go_type = LM_TYPE_RGRP, |
555 | .go_flags = GLOF_ASPACE, | 555 | .go_flags = GLOF_ASPACE | GLOF_LVB, |
556 | }; | 556 | }; |
557 | 557 | ||
558 | const struct gfs2_glock_operations gfs2_trans_glops = { | 558 | const struct gfs2_glock_operations gfs2_trans_glops = { |
@@ -577,6 +577,7 @@ const struct gfs2_glock_operations gfs2_nondisk_glops = { | |||
577 | 577 | ||
578 | const struct gfs2_glock_operations gfs2_quota_glops = { | 578 | const struct gfs2_glock_operations gfs2_quota_glops = { |
579 | .go_type = LM_TYPE_QUOTA, | 579 | .go_type = LM_TYPE_QUOTA, |
580 | .go_flags = GLOF_LVB, | ||
580 | }; | 581 | }; |
581 | 582 | ||
582 | const struct gfs2_glock_operations gfs2_journal_glops = { | 583 | const struct gfs2_glock_operations gfs2_journal_glops = { |