]> Pileus Git - ~andy/linux/blobdiff - fs/fscache/cache.c
Merge commit 'v2.6.32'
[~andy/linux] / fs / fscache / cache.c
index 724384ef96deca5fcb6cda53074d99847b0f8c88..6a3c48abd677f52eb2bd10a5bb89108cd5d89d0a 100644 (file)
@@ -381,11 +381,15 @@ void fscache_withdraw_cache(struct fscache_cache *cache)
 
        /* make sure all pages pinned by operations on behalf of the netfs are
         * written to disk */
+       fscache_stat(&fscache_n_cop_sync_cache);
        cache->ops->sync_cache(cache);
+       fscache_stat_d(&fscache_n_cop_sync_cache);
 
        /* dissociate all the netfs pages backed by this cache from the block
         * mappings in the cache */
+       fscache_stat(&fscache_n_cop_dissociate_pages);
        cache->ops->dissociate_pages(cache);
+       fscache_stat_d(&fscache_n_cop_dissociate_pages);
 
        /* we now have to destroy all the active objects pertaining to this
         * cache - which we do by passing them off to thread pool to be