Skip to content

Commit bef292a

Browse files
committed
GFS2: Remove obsolete quota tunable
There is no need for a paramater which relates to the internals of quota to be exposed to users. The only possible use would be to turn it up so large that the memory allocation fails. So lets remove it and set it to a sensible value which ensures that we don't ask for multipage allocations. Currently the size of struct gfs2_holder means that the caluclated value is identical to the previous default value, so there should be no functional change. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Abhijith Das <adas@redhat.com>
1 parent 26e43a1 commit bef292a

4 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎fs/gfs2/incore.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@ struct gfs2_tune {
537537

538538
unsigned int gt_logd_secs;
539539

540-
unsigned int gt_quota_simul_sync; /* Max quotavals to sync at once */
541540
unsigned int gt_quota_warn_period; /* Secs between quota warn msgs */
542541
unsigned int gt_quota_scale_num; /* Numerator */
543542
unsigned int gt_quota_scale_den; /* Denominator */

‎fs/gfs2/ops_fstype.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ static void gfs2_tune_init(struct gfs2_tune *gt)
5151
{
5252
spin_lock_init(&gt->gt_spin);
5353

54-
gt->gt_quota_simul_sync = 64;
5554
gt->gt_quota_warn_period = 10;
5655
gt->gt_quota_scale_num = 1;
5756
gt->gt_quota_scale_den = 1;

‎fs/gfs2/quota.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ int gfs2_quota_sync(struct super_block *sb, int type)
11401140
{
11411141
struct gfs2_sbd *sdp = sb->s_fs_info;
11421142
struct gfs2_quota_data **qda;
1143-
unsigned int max_qd = gfs2_tune_get(sdp, gt_quota_simul_sync);
1143+
unsigned int max_qd = PAGE_SIZE/sizeof(struct gfs2_holder);
11441144
unsigned int num_qd;
11451145
unsigned int x;
11461146
int error = 0;

‎fs/gfs2/sys.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,6 @@ TUNE_ATTR(max_readahead, 0);
587587
TUNE_ATTR(complain_secs, 0);
588588
TUNE_ATTR(statfs_slow, 0);
589589
TUNE_ATTR(new_files_jdata, 0);
590-
TUNE_ATTR(quota_simul_sync, 1);
591590
TUNE_ATTR(statfs_quantum, 1);
592591
TUNE_ATTR_3(quota_scale, quota_scale_show, quota_scale_store);
593592

@@ -597,7 +596,6 @@ static struct attribute *tune_attrs[] = {
597596
&tune_attr_max_readahead.attr,
598597
&tune_attr_complain_secs.attr,
599598
&tune_attr_statfs_slow.attr,
600-
&tune_attr_quota_simul_sync.attr,
601599
&tune_attr_statfs_quantum.attr,
602600
&tune_attr_quota_scale.attr,
603601
&tune_attr_new_files_jdata.attr,

0 commit comments

Comments
 (0)