aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorBenjamin Marzinski <bmarzins@redhat.com>2009-10-20 03:39:44 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2009-12-03 06:55:17 -0500
commit3d3c10f2ce80d2a19e5e02023c2b7ab7086c36d5 (patch)
tree56b62b064457596caf66700323ff5aac2320ae93 /fs/gfs2/incore.h
parent2ec4650526c5a94d96bb760001fe0685b15988de (diff)
GFS2: Improve statfs and quota usability
GFS2 now has three new mount options, statfs_quantum, quota_quantum and statfs_percent. statfs_quantum and quota_quantum simply allow you to set the tunables of the same name. Setting setting statfs_quantum to 0 will also turn on the statfs_slow tunable. statfs_percent accepts an integer between 0 and 100. Numbers between 1 and 100 will cause GFS2 to do any early sync when the local number of blocks free changes by at least statfs_percent from the totoal number of blocks free. Setting statfs_percent to 0 disables this. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> 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, 4 insertions, 0 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 6edb423f90b3..c239b0f969c8 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -430,6 +430,9 @@ struct gfs2_args {
430 unsigned int ar_discard:1; /* discard requests */ 430 unsigned int ar_discard:1; /* discard requests */
431 unsigned int ar_errors:2; /* errors=withdraw | panic */ 431 unsigned int ar_errors:2; /* errors=withdraw | panic */
432 int ar_commit; /* Commit interval */ 432 int ar_commit; /* Commit interval */
433 int ar_statfs_quantum; /* The fast statfs interval */
434 int ar_quota_quantum; /* The quota interval */
435 int ar_statfs_percent; /* The % change to force sync */
433}; 436};
434 437
435struct gfs2_tune { 438struct gfs2_tune {
@@ -558,6 +561,7 @@ struct gfs2_sbd {
558 spinlock_t sd_statfs_spin; 561 spinlock_t sd_statfs_spin;
559 struct gfs2_statfs_change_host sd_statfs_master; 562 struct gfs2_statfs_change_host sd_statfs_master;
560 struct gfs2_statfs_change_host sd_statfs_local; 563 struct gfs2_statfs_change_host sd_statfs_local;
564 int sd_statfs_force_sync;
561 565
562 /* Resource group stuff */ 566 /* Resource group stuff */
563 567