aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glops.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-08-30 09:30:00 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-08-30 09:30:00 -0400
commit8fb4b536e7b9dbaf7a6b8204e887b92a14e4352c (patch)
treef74f905188ca9df0fc6f5fda3c6ee25ede02ee2f /fs/gfs2/glops.c
parent83b7a664a0c7c39ccfa4c72535dc1c001d4e7a18 (diff)
[GFS2] Make glock operations const
For all the usual reasons of enforcing correctness and potentially reducing code size, this patch makes the glock operations const. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r--fs/gfs2/glops.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 75d4c50cff45..0c92c52fc92a 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -493,13 +493,13 @@ static int quota_go_demote_ok(struct gfs2_glock *gl)
493 return !atomic_read(&gl->gl_lvb_count); 493 return !atomic_read(&gl->gl_lvb_count);
494} 494}
495 495
496struct gfs2_glock_operations gfs2_meta_glops = { 496const struct gfs2_glock_operations gfs2_meta_glops = {
497 .go_xmote_th = gfs2_glock_xmote_th, 497 .go_xmote_th = gfs2_glock_xmote_th,
498 .go_drop_th = gfs2_glock_drop_th, 498 .go_drop_th = gfs2_glock_drop_th,
499 .go_type = LM_TYPE_META 499 .go_type = LM_TYPE_META
500}; 500};
501 501
502struct gfs2_glock_operations gfs2_inode_glops = { 502const struct gfs2_glock_operations gfs2_inode_glops = {
503 .go_xmote_th = inode_go_xmote_th, 503 .go_xmote_th = inode_go_xmote_th,
504 .go_xmote_bh = inode_go_xmote_bh, 504 .go_xmote_bh = inode_go_xmote_bh,
505 .go_drop_th = inode_go_drop_th, 505 .go_drop_th = inode_go_drop_th,
@@ -512,7 +512,7 @@ struct gfs2_glock_operations gfs2_inode_glops = {
512 .go_type = LM_TYPE_INODE 512 .go_type = LM_TYPE_INODE
513}; 513};
514 514
515struct gfs2_glock_operations gfs2_rgrp_glops = { 515const struct gfs2_glock_operations gfs2_rgrp_glops = {
516 .go_xmote_th = gfs2_glock_xmote_th, 516 .go_xmote_th = gfs2_glock_xmote_th,
517 .go_drop_th = gfs2_glock_drop_th, 517 .go_drop_th = gfs2_glock_drop_th,
518 .go_sync = meta_go_sync, 518 .go_sync = meta_go_sync,
@@ -523,40 +523,40 @@ struct gfs2_glock_operations gfs2_rgrp_glops = {
523 .go_type = LM_TYPE_RGRP 523 .go_type = LM_TYPE_RGRP
524}; 524};
525 525
526struct gfs2_glock_operations gfs2_trans_glops = { 526const struct gfs2_glock_operations gfs2_trans_glops = {
527 .go_xmote_th = trans_go_xmote_th, 527 .go_xmote_th = trans_go_xmote_th,
528 .go_xmote_bh = trans_go_xmote_bh, 528 .go_xmote_bh = trans_go_xmote_bh,
529 .go_drop_th = trans_go_drop_th, 529 .go_drop_th = trans_go_drop_th,
530 .go_type = LM_TYPE_NONDISK 530 .go_type = LM_TYPE_NONDISK
531}; 531};
532 532
533struct gfs2_glock_operations gfs2_iopen_glops = { 533const struct gfs2_glock_operations gfs2_iopen_glops = {
534 .go_xmote_th = gfs2_glock_xmote_th, 534 .go_xmote_th = gfs2_glock_xmote_th,
535 .go_drop_th = gfs2_glock_drop_th, 535 .go_drop_th = gfs2_glock_drop_th,
536 .go_callback = gfs2_iopen_go_callback, 536 .go_callback = gfs2_iopen_go_callback,
537 .go_type = LM_TYPE_IOPEN 537 .go_type = LM_TYPE_IOPEN
538}; 538};
539 539
540struct gfs2_glock_operations gfs2_flock_glops = { 540const struct gfs2_glock_operations gfs2_flock_glops = {
541 .go_xmote_th = gfs2_glock_xmote_th, 541 .go_xmote_th = gfs2_glock_xmote_th,
542 .go_drop_th = gfs2_glock_drop_th, 542 .go_drop_th = gfs2_glock_drop_th,
543 .go_type = LM_TYPE_FLOCK 543 .go_type = LM_TYPE_FLOCK
544}; 544};
545 545
546struct gfs2_glock_operations gfs2_nondisk_glops = { 546const struct gfs2_glock_operations gfs2_nondisk_glops = {
547 .go_xmote_th = gfs2_glock_xmote_th, 547 .go_xmote_th = gfs2_glock_xmote_th,
548 .go_drop_th = gfs2_glock_drop_th, 548 .go_drop_th = gfs2_glock_drop_th,
549 .go_type = LM_TYPE_NONDISK 549 .go_type = LM_TYPE_NONDISK
550}; 550};
551 551
552struct gfs2_glock_operations gfs2_quota_glops = { 552const struct gfs2_glock_operations gfs2_quota_glops = {
553 .go_xmote_th = gfs2_glock_xmote_th, 553 .go_xmote_th = gfs2_glock_xmote_th,
554 .go_drop_th = gfs2_glock_drop_th, 554 .go_drop_th = gfs2_glock_drop_th,
555 .go_demote_ok = quota_go_demote_ok, 555 .go_demote_ok = quota_go_demote_ok,
556 .go_type = LM_TYPE_QUOTA 556 .go_type = LM_TYPE_QUOTA
557}; 557};
558 558
559struct gfs2_glock_operations gfs2_journal_glops = { 559const struct gfs2_glock_operations gfs2_journal_glops = {
560 .go_xmote_th = gfs2_glock_xmote_th, 560 .go_xmote_th = gfs2_glock_xmote_th,
561 .go_drop_th = gfs2_glock_drop_th, 561 .go_drop_th = gfs2_glock_drop_th,
562 .go_type = LM_TYPE_JOURNAL 562 .go_type = LM_TYPE_JOURNAL