diff options
author | Abhijith Das <adas@redhat.com> | 2009-01-07 17:03:37 -0500 |
---|---|---|
committer | Steven Whitehouse <steve@dolmen.chygwyn.com> | 2009-03-24 07:21:12 -0400 |
commit | 0a7ab79c5b5a16035e09b466c9013c8afc3b4bff (patch) | |
tree | bb82ea7f936b334b4de184288bc951f1642e9541 /fs/gfs2/incore.h | |
parent | 2db2aac255c38e75ad17c0b24feb589ccfccc0ae (diff) |
GFS2: change gfs2_quota_scan into a shrinker
Deallocation of gfs2_quota_data objects now happens on-demand through a
shrinker instead of routinely deallocating through the quotad daemon.
Signed-off-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 608849d00021..592aa5040d29 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h | |||
@@ -283,7 +283,9 @@ enum { | |||
283 | 283 | ||
284 | struct gfs2_quota_data { | 284 | struct gfs2_quota_data { |
285 | struct list_head qd_list; | 285 | struct list_head qd_list; |
286 | unsigned int qd_count; | 286 | struct list_head qd_reclaim; |
287 | |||
288 | atomic_t qd_count; | ||
287 | 289 | ||
288 | u32 qd_id; | 290 | u32 qd_id; |
289 | unsigned long qd_flags; /* QDF_... */ | 291 | unsigned long qd_flags; /* QDF_... */ |
@@ -303,7 +305,6 @@ struct gfs2_quota_data { | |||
303 | 305 | ||
304 | u64 qd_sync_gen; | 306 | u64 qd_sync_gen; |
305 | unsigned long qd_last_warn; | 307 | unsigned long qd_last_warn; |
306 | unsigned long qd_last_touched; | ||
307 | }; | 308 | }; |
308 | 309 | ||
309 | struct gfs2_trans { | 310 | struct gfs2_trans { |
@@ -406,7 +407,6 @@ struct gfs2_tune { | |||
406 | unsigned int gt_quota_warn_period; /* Secs between quota warn msgs */ | 407 | unsigned int gt_quota_warn_period; /* Secs between quota warn msgs */ |
407 | unsigned int gt_quota_scale_num; /* Numerator */ | 408 | unsigned int gt_quota_scale_num; /* Numerator */ |
408 | unsigned int gt_quota_scale_den; /* Denominator */ | 409 | unsigned int gt_quota_scale_den; /* Denominator */ |
409 | unsigned int gt_quota_cache_secs; | ||
410 | unsigned int gt_quota_quantum; /* Secs between syncs to quota file */ | 410 | unsigned int gt_quota_quantum; /* Secs between syncs to quota file */ |
411 | unsigned int gt_new_files_jdata; | 411 | unsigned int gt_new_files_jdata; |
412 | unsigned int gt_max_readahead; /* Max bytes to read-ahead from disk */ | 412 | unsigned int gt_max_readahead; /* Max bytes to read-ahead from disk */ |