From 26be5dc52d771b37d4e9da8814111448e4e68148 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Sun, 23 Aug 2009 22:36:17 +0000 Subject: 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 BUG: 221 (stat prefetch implementation) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221 --- doc/stat-prefetch-design.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc') 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 -- cgit