summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mru_cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-09-19 11:40:13 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-09-19 11:40:13 -0700
commita78feb7c8a0687913f9869c05811054595a42a76 (patch)
treeb89ceba977943e58475e28cf6acd6377a8d84320 /fs/xfs/xfs_mru_cache.h
parent91fe7d7cdd7ebb0b6c01f201a23824ab5b466ada (diff)
parentb394e43e995d08821588a22561c6a71a63b4ff27 (diff)
downloadop-kernel-dev-a78feb7c8a0687913f9869c05811054595a42a76.zip
op-kernel-dev-a78feb7c8a0687913f9869c05811054595a42a76.tar.gz
Merge branch 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-2.6
* 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-2.6: [XFS] Avoid replaying inode buffer initialisation log items if on-disk version is newer. [XFS] Ensure file size updates have been completed before writing inode to disk. [XFS] On-demand reaping of the MRU cache
Diffstat (limited to 'fs/xfs/xfs_mru_cache.h')
-rw-r--r--fs/xfs/xfs_mru_cache.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/xfs_mru_cache.h b/fs/xfs/xfs_mru_cache.h
index 624fd10..dd58ea1 100644
--- a/fs/xfs/xfs_mru_cache.h
+++ b/fs/xfs/xfs_mru_cache.h
@@ -32,11 +32,9 @@ typedef struct xfs_mru_cache
unsigned int grp_time; /* Time period spanned by grps. */
unsigned int lru_grp; /* Group containing time zero. */
unsigned long time_zero; /* Time first element was added. */
- unsigned long next_reap; /* Time that the reaper should
- next do something. */
- unsigned int reap_all; /* if set, reap all lists */
xfs_mru_cache_free_func_t free_func; /* Function pointer for freeing. */
struct delayed_work work; /* Workqueue data for reaping. */
+ unsigned int queued; /* work has been queued */
} xfs_mru_cache_t;
int xfs_mru_cache_init(void);
@@ -44,7 +42,7 @@ void xfs_mru_cache_uninit(void);
int xfs_mru_cache_create(struct xfs_mru_cache **mrup, unsigned int lifetime_ms,
unsigned int grp_count,
xfs_mru_cache_free_func_t free_func);
-void xfs_mru_cache_flush(xfs_mru_cache_t *mru, int restart);
+void xfs_mru_cache_flush(xfs_mru_cache_t *mru);
void xfs_mru_cache_destroy(struct xfs_mru_cache *mru);
int xfs_mru_cache_insert(struct xfs_mru_cache *mru, unsigned long key,
void *value);
OpenPOWER on IntegriCloud