diff options
author | Martin Brandenburg | 2019-02-12 21:19:06 +0100 |
---|---|---|
committer | Mike Marshall | 2019-05-03 20:32:39 +0200 |
commit | 8f04e1be784858ba0288c7c09b9de06627a800c9 (patch) | |
tree | bf777bf20b50e8904de6be0f63f452b4246a9909 /fs/orangefs/orangefs-mod.c | |
parent | orangefs: implement writepages (diff) | |
download | kernel-qcow2-linux-8f04e1be784858ba0288c7c09b9de06627a800c9.tar.gz kernel-qcow2-linux-8f04e1be784858ba0288c7c09b9de06627a800c9.tar.xz kernel-qcow2-linux-8f04e1be784858ba0288c7c09b9de06627a800c9.zip |
orangefs: add orangefs_revalidate_mapping
This is modeled after NFS, except our method is different. We use a
simple timer to determine whether to invalidate the page cache. This
is bound to perform.
This addes a sysfs parameter cache_timeout_msecs which controls the time
between page cache invalidations.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-mod.c')
-rw-r--r-- | fs/orangefs/orangefs-mod.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/orangefs/orangefs-mod.c b/fs/orangefs/orangefs-mod.c index 85ef87245a87..82cf8b3e568b 100644 --- a/fs/orangefs/orangefs-mod.c +++ b/fs/orangefs/orangefs-mod.c @@ -30,6 +30,7 @@ static ulong module_parm_debug_mask; __u64 orangefs_gossip_debug_mask; int op_timeout_secs = ORANGEFS_DEFAULT_OP_TIMEOUT_SECS; int slot_timeout_secs = ORANGEFS_DEFAULT_SLOT_TIMEOUT_SECS; +int orangefs_cache_timeout_msecs = 50; int orangefs_dcache_timeout_msecs = 50; int orangefs_getattr_timeout_msecs = 50; |