diff src/core/ngx_file.h @ 4038:30519bb5621d stable-1.0

Merge of r3966, r3967, r3968, r3969, r3970, r3971: Cache loader improvements: The cache loader performs two tasks: inserting cache objects in inactivity list and evaluating total cache size. Reading just directory is enough for this purpose. Elimination of reading cache files saves at least one disk I/O operation per file.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 29 Aug 2011 09:51:56 +0000
parents 6060225e9261
children d620f497c50f
line wrap: on
line diff
--- a/src/core/ngx_file.h	Mon Aug 29 09:35:00 2011 +0000
+++ b/src/core/ngx_file.h	Mon Aug 29 09:51:56 2011 +0000
@@ -104,6 +104,7 @@
 
 struct ngx_tree_ctx_s {
     off_t                      size;
+    off_t                      fs_size;
     ngx_uint_t                 access;
     time_t                     mtime;