Whamcloud - gitweb
LU-5557 mdt: track reint operations in MDS service stats
[fs/lustre-release.git] / lustre / include / lclient.h
index dd784f3..cb02a9a 100644 (file)
@@ -205,7 +205,7 @@ struct ccc_object {
          *
          * \see ccc_page::cpg_pending_linkage
          */
-        cfs_list_t             cob_pending_list;
+       struct list_head        cob_pending_list;
 
         /**
          * Access this counter is protected by inode->i_sem. Now that
@@ -463,13 +463,17 @@ 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
         */
-       cfs_list_t              ccc_lru;
+       struct list_head        ccc_lru;
        /**
         * Max # of LRU entries
         */
@@ -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 {