summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_file.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-08-29 09:51:56 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-08-29 09:51:56 +0000
commit34f579fb6d3c6582a685e65265f332fa8cf83fe8 (patch)
tree015b96a4bc4a5b03f490b81cc4863f83a5dd5745 /src/core/ngx_file.h
parent283936abca079a6f6e6c0dd23b4a5fd45467e96a (diff)
downloadnginx-34f579fb6d3c6582a685e65265f332fa8cf83fe8.tar.gz
nginx-34f579fb6d3c6582a685e65265f332fa8cf83fe8.tar.bz2
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.
Diffstat (limited to 'src/core/ngx_file.h')
-rw-r--r--src/core/ngx_file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_file.h b/src/core/ngx_file.h
index 8b502539a..88035172d 100644
--- a/src/core/ngx_file.h
+++ b/src/core/ngx_file.h
@@ -104,6 +104,7 @@ typedef ngx_int_t (*ngx_tree_handler_pt) (ngx_tree_ctx_t *ctx, ngx_str_t *name);
struct ngx_tree_ctx_s {
off_t size;
+ off_t fs_size;
ngx_uint_t access;
time_t mtime;