X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flclient.h;h=cb02a9a97228a3d17d8a5d9cb18a03e4088834f5;hb=f347b3cd6168c291d90565f8cd8505ed69a927f8;hp=afa462c9e985178e1a9c8f6f67454874be495cb4;hpb=8701e7e4b5ec1b34700c95b9b6588f4745730b72;p=fs%2Flustre-release.git diff --git a/lustre/include/lclient.h b/lustre/include/lclient.h index afa462c..cb02a9a 100644 --- a/lustre/include/lclient.h +++ b/lustre/include/lclient.h @@ -463,9 +463,13 @@ struct cl_client_cache { */ atomic_t ccc_users; /** + * # of threads are doing shrinking + */ + unsigned int ccc_lru_shrinkers; + /** * # of LRU entries available */ - atomic_t ccc_lru_left; + atomic_long_t ccc_lru_left; /** * List of entities(OSCs) for this LRU cache */ @@ -479,22 +483,18 @@ struct cl_client_cache { */ spinlock_t ccc_lru_lock; /** - * # of threads are doing shrinking - */ - unsigned int ccc_lru_shrinkers; - /** * Set if unstable check is enabled */ unsigned int ccc_unstable_check:1; /** + * # of unstable pages for this mount point + */ + atomic_long_t ccc_unstable_nr; + /** * Waitq for awaiting unstable pages to reach zero. * Used at umounting time and signaled on BRW commit */ wait_queue_head_t ccc_unstable_waitq; - /** - * # of unstable pages for this mount point - */ - atomic_t ccc_unstable_nr; }; enum {