only delete stat cache entries when file could have been modified.

git-svn-id: http://s3fs.googlecode.com/svn/trunk@324 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
ben.lemasurier@gmail.com 2011-02-22 23:01:42 +00:00
parent 9b5f694497
commit c07e27eff1
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(s3fs, 1.47)
AC_INIT(s3fs, 1.48)
AC_CANONICAL_SYSTEM

View File

@ -3041,8 +3041,8 @@ static int s3fs_release(const char *path, struct fuse_file_info *fi) {
YIKES(-errno);
}
// FIXME: is this required?
delete_stat_cache_entry(path);
if((fi->flags & O_RDWR) || (fi->flags & O_WRONLY))
delete_stat_cache_entry(path);
return 0;
}