diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-08-23 22:36:17 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-08 01:42:39 -0700 |
commit | 26be5dc52d771b37d4e9da8814111448e4e68148 (patch) | |
tree | 09805a809045e55fa62eb02098f758159ef7227e /doc | |
parent | 155e6342d4f72d3be500510277b0808859ae2d2c (diff) |
performance/stat-prefetch: flush stat corresponding to directory being read in readdir
- delete the entry corresponding to basename of path on which fd is opened
from cache stored in parent. This is necessary because readdir changes
st_atime.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 221 (stat prefetch implementation)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221
Diffstat (limited to 'doc')
-rw-r--r-- | doc/stat-prefetch-design.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/stat-prefetch-design.txt b/doc/stat-prefetch-design.txt index 46bb3699d21..d10f841e69d 100644 --- a/doc/stat-prefetch-design.txt +++ b/doc/stat-prefetch-design.txt @@ -29,9 +29,11 @@ fops to be implemented: the directory contents. * readdir - Cache the direntries returned in readdir_cbk in the context of fd. If the - readdir is happening on non-expected offsets (means a seekdir/rewinddir - has happened), cache has to be flushed. + 1. Cache the direntries returned in readdir_cbk in the context of fd. + 2. If the readdir is happening on non-expected offsets (means a seekdir/rewinddir + has happened), cache has to be flushed. + 3. Delete the entry corresponding to basename of path on which fd is opened + from cache stored in parent. * chmod/fchmod Delete the entry corresponding to basename from cache stored in context of |