aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-02-21 07:51:39 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-02-21 07:51:39 -0500
commitf55ab26a8f92a23988c3e6da28dae4741933a4e2 (patch)
treeb6f9e89ce1b2ccde8d81314aeea06f6a02f882f7 /fs/gfs2/incore.h
parent5c4e9e036678fae65c9288e1c00a6f33cd447283 (diff)
[GFS2] Use mutices rather than semaphores
As well as a number of minor bug fixes, this patch changes GFS to use mutices rather than semaphores. This results in better information in case there are any locking problems. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index e43a0475d0d8..7fe422537ff0 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -88,7 +88,7 @@ struct gfs2_rgrpd {
88 uint64_t rd_rg_vn; 88 uint64_t rd_rg_vn;
89 struct gfs2_bitmap *rd_bits; 89 struct gfs2_bitmap *rd_bits;
90 unsigned int rd_bh_count; 90 unsigned int rd_bh_count;
91 struct semaphore rd_mutex; 91 struct mutex rd_mutex;
92 uint32_t rd_free_clone; 92 uint32_t rd_free_clone;
93 struct gfs2_log_element rd_le; 93 struct gfs2_log_element rd_le;
94 uint32_t rd_last_alloc_data; 94 uint32_t rd_last_alloc_data;
@@ -277,7 +277,7 @@ enum {
277struct gfs2_file { 277struct gfs2_file {
278 unsigned long f_flags; /* GFF_... */ 278 unsigned long f_flags; /* GFF_... */
279 279
280 struct semaphore f_fl_mutex; 280 struct mutex f_fl_mutex;
281 struct gfs2_holder f_fl_gh; 281 struct gfs2_holder f_fl_gh;
282 282
283 struct gfs2_inode *f_inode; 283 struct gfs2_inode *f_inode;
@@ -510,7 +510,7 @@ struct gfs2_sbd {
510 struct gfs2_holder sd_live_gh; 510 struct gfs2_holder sd_live_gh;
511 struct gfs2_glock *sd_rename_gl; 511 struct gfs2_glock *sd_rename_gl;
512 struct gfs2_glock *sd_trans_gl; 512 struct gfs2_glock *sd_trans_gl;
513 struct semaphore sd_invalidate_inodes_mutex; 513 struct mutex sd_invalidate_inodes_mutex;
514 514
515 /* Inode Stuff */ 515 /* Inode Stuff */
516 516
@@ -528,12 +528,12 @@ struct gfs2_sbd {
528 528
529 /* Inum stuff */ 529 /* Inum stuff */
530 530
531 struct semaphore sd_inum_mutex; 531 struct mutex sd_inum_mutex;
532 532
533 /* StatFS stuff */ 533 /* StatFS stuff */
534 534
535 spinlock_t sd_statfs_spin; 535 spinlock_t sd_statfs_spin;
536 struct semaphore sd_statfs_mutex; 536 struct mutex sd_statfs_mutex;
537 struct gfs2_statfs_change sd_statfs_master; 537 struct gfs2_statfs_change sd_statfs_master;
538 struct gfs2_statfs_change sd_statfs_local; 538 struct gfs2_statfs_change sd_statfs_local;
539 unsigned long sd_statfs_sync_time; 539 unsigned long sd_statfs_sync_time;
@@ -542,7 +542,7 @@ struct gfs2_sbd {
542 542
543 uint64_t sd_rindex_vn; 543 uint64_t sd_rindex_vn;
544 spinlock_t sd_rindex_spin; 544 spinlock_t sd_rindex_spin;
545 struct semaphore sd_rindex_mutex; 545 struct mutex sd_rindex_mutex;
546 struct list_head sd_rindex_list; 546 struct list_head sd_rindex_list;
547 struct list_head sd_rindex_mru_list; 547 struct list_head sd_rindex_mru_list;
548 struct list_head sd_rindex_recent_list; 548 struct list_head sd_rindex_recent_list;
@@ -553,7 +553,7 @@ struct gfs2_sbd {
553 553
554 struct list_head sd_jindex_list; 554 struct list_head sd_jindex_list;
555 spinlock_t sd_jindex_spin; 555 spinlock_t sd_jindex_spin;
556 struct semaphore sd_jindex_mutex; 556 struct mutex sd_jindex_mutex;
557 unsigned int sd_journals; 557 unsigned int sd_journals;
558 unsigned long sd_jindex_refresh_time; 558 unsigned long sd_jindex_refresh_time;
559 559
@@ -581,7 +581,7 @@ struct gfs2_sbd {
581 struct list_head sd_unlinked_list; 581 struct list_head sd_unlinked_list;
582 atomic_t sd_unlinked_count; 582 atomic_t sd_unlinked_count;
583 spinlock_t sd_unlinked_spin; 583 spinlock_t sd_unlinked_spin;
584 struct semaphore sd_unlinked_mutex; 584 struct mutex sd_unlinked_mutex;
585 585
586 unsigned int sd_unlinked_slots; 586 unsigned int sd_unlinked_slots;
587 unsigned int sd_unlinked_chunks; 587 unsigned int sd_unlinked_chunks;
@@ -592,7 +592,7 @@ struct gfs2_sbd {
592 struct list_head sd_quota_list; 592 struct list_head sd_quota_list;
593 atomic_t sd_quota_count; 593 atomic_t sd_quota_count;
594 spinlock_t sd_quota_spin; 594 spinlock_t sd_quota_spin;
595 struct semaphore sd_quota_mutex; 595 struct mutex sd_quota_mutex;
596 596
597 unsigned int sd_quota_slots; 597 unsigned int sd_quota_slots;
598 unsigned int sd_quota_chunks; 598 unsigned int sd_quota_chunks;
@@ -637,7 +637,7 @@ struct gfs2_sbd {
637 int sd_log_idle; 637 int sd_log_idle;
638 638
639 unsigned long sd_log_flush_time; 639 unsigned long sd_log_flush_time;
640 struct semaphore sd_log_flush_lock; 640 struct mutex sd_log_flush_lock;
641 struct list_head sd_log_flush_list; 641 struct list_head sd_log_flush_list;
642 642
643 unsigned int sd_log_flush_head; 643 unsigned int sd_log_flush_head;
@@ -659,7 +659,7 @@ struct gfs2_sbd {
659 /* For quiescing the filesystem */ 659 /* For quiescing the filesystem */
660 660
661 struct gfs2_holder sd_freeze_gh; 661 struct gfs2_holder sd_freeze_gh;
662 struct semaphore sd_freeze_lock; 662 struct mutex sd_freeze_lock;
663 unsigned int sd_freeze_count; 663 unsigned int sd_freeze_count;
664 664
665 /* Counters */ 665 /* Counters */