diff options
author | Brian Foster <bfoster@redhat.com> | 2012-11-06 09:50:47 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-11-08 16:34:59 -0500 |
commit | 579b62faa5fb16ffeeb88cda5e2c4e95730881af (patch) | |
tree | b0d71a823d2b6e5718786f99921968109d8f644e /fs/xfs/xfs_globals.c | |
parent | 00ca79a04bef1a1b30ef8afd992d905b6d986caf (diff) |
xfs: add background scanning to clear eofblocks inodes
Create a new mount workqueue and delayed_work to enable background
scanning and freeing of eofblocks inodes. The scanner kicks in once
speculative preallocation occurs and stops requeueing itself when
no eofblocks inodes exist.
The scan interval is based on the new
'speculative_prealloc_lifetime' tunable (default to 5m). The
background scanner performs unfiltered, best effort scans (which
skips inodes under lock contention or with a dirty cache mapping).
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_globals.c')
-rw-r--r-- | fs/xfs/xfs_globals.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_globals.c b/fs/xfs/xfs_globals.c index 76e81cff70b9..5399ef222dd7 100644 --- a/fs/xfs/xfs_globals.c +++ b/fs/xfs/xfs_globals.c | |||
@@ -21,7 +21,8 @@ | |||
21 | /* | 21 | /* |
22 | * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n, | 22 | * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n, |
23 | * other XFS code uses these values. Times are measured in centisecs (i.e. | 23 | * other XFS code uses these values. Times are measured in centisecs (i.e. |
24 | * 100ths of a second). | 24 | * 100ths of a second) with the exception of eofb_timer, which is measured in |
25 | * seconds. | ||
25 | */ | 26 | */ |
26 | xfs_param_t xfs_params = { | 27 | xfs_param_t xfs_params = { |
27 | /* MIN DFLT MAX */ | 28 | /* MIN DFLT MAX */ |
@@ -40,4 +41,5 @@ xfs_param_t xfs_params = { | |||
40 | .rotorstep = { 1, 1, 255 }, | 41 | .rotorstep = { 1, 1, 255 }, |
41 | .inherit_nodfrg = { 0, 1, 1 }, | 42 | .inherit_nodfrg = { 0, 1, 1 }, |
42 | .fstrm_timer = { 1, 30*100, 3600*100}, | 43 | .fstrm_timer = { 1, 30*100, 3600*100}, |
44 | .eofb_timer = { 1, 300, 3600*24}, | ||
43 | }; | 45 | }; |