aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2008-11-17 09:25:37 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2009-01-05 02:39:05 -0500
commit37b2c8377c98acb60cf4d0126e385ef2153bded9 (patch)
tree9db50dbebc75a5e0dfde927b52dd05470cf66132 /fs/gfs2/incore.h
parentfa75cedc3da5923b8ea3877be9d5bc09b02e3860 (diff)
GFS2: Clean up & move gfs2_quotad
This patch is a clean up of gfs2_quotad prior to giving it an extra job to do in addition to the current portfolio of updating the quota and statfs information from time to time. As a result it has been moved into quota.c allowing one of the functions it calls to be made static. Also the clean up allows the two existing functions to have separate timeouts and also to coexist with its future role of dealing with the "truncate in progress" inode flag. The (pointless) setting of gfs2_quotad_secs is removed since we arrange to only wake up quotad when one of the two timers expires. In addition the struct gfs2_quota_data is moved into a slab cache, mainly for easier debugging. It should also be possible to use a shrinker in the future, rather than the current scheme of scanning the quota data entries from time to time. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 9e3b613d0bac..cfebc1793574 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -402,7 +402,6 @@ struct gfs2_tune {
402 402
403 unsigned int gt_recoverd_secs; 403 unsigned int gt_recoverd_secs;
404 unsigned int gt_logd_secs; 404 unsigned int gt_logd_secs;
405 unsigned int gt_quotad_secs;
406 405
407 unsigned int gt_quota_simul_sync; /* Max quotavals to sync at once */ 406 unsigned int gt_quota_simul_sync; /* Max quotavals to sync at once */
408 unsigned int gt_quota_warn_period; /* Secs between quota warn msgs */ 407 unsigned int gt_quota_warn_period; /* Secs between quota warn msgs */
@@ -509,7 +508,6 @@ struct gfs2_sbd {
509 spinlock_t sd_statfs_spin; 508 spinlock_t sd_statfs_spin;
510 struct gfs2_statfs_change_host sd_statfs_master; 509 struct gfs2_statfs_change_host sd_statfs_master;
511 struct gfs2_statfs_change_host sd_statfs_local; 510 struct gfs2_statfs_change_host sd_statfs_local;
512 unsigned long sd_statfs_sync_time;
513 511
514 /* Resource group stuff */ 512 /* Resource group stuff */
515 513
@@ -551,13 +549,13 @@ struct gfs2_sbd {
551 atomic_t sd_quota_count; 549 atomic_t sd_quota_count;
552 spinlock_t sd_quota_spin; 550 spinlock_t sd_quota_spin;
553 struct mutex sd_quota_mutex; 551 struct mutex sd_quota_mutex;
552 wait_queue_head_t sd_quota_wait;
554 553
555 unsigned int sd_quota_slots; 554 unsigned int sd_quota_slots;
556 unsigned int sd_quota_chunks; 555 unsigned int sd_quota_chunks;
557 unsigned char **sd_quota_bitmap; 556 unsigned char **sd_quota_bitmap;
558 557
559 u64 sd_quota_sync_gen; 558 u64 sd_quota_sync_gen;
560 unsigned long sd_quota_sync_time;
561 559
562 /* Log stuff */ 560 /* Log stuff */
563 561