diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-02-12 13:44:16 +0100 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-03-06 05:37:05 +0100 |
commit | df2cf170c823ba779ca339e3ede347c87f4dc6a9 (patch) | |
tree | 9ea1ababe413a518afb3de89dadeba73db082850 /fs/cifs/dir.c | |
parent | Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd (diff) | |
download | linux-df2cf170c823ba779ca339e3ede347c87f4dc6a9.tar.xz linux-df2cf170c823ba779ca339e3ede347c87f4dc6a9.zip |
cifs: overhaul cifs_revalidate and rename to cifs_revalidate_dentry
cifs_revalidate is renamed to cifs_revalidate_dentry as a later patch
will add a by-filehandle variant.
Add a new "invalid_mapping" flag to the cifsInodeInfo that indicates
that the pagecache is considered invalid. Add a new routine to check
inode attributes whenever they're updated and set that flag if the inode
has changed on the server.
cifs_revalidate_dentry is then changed to just update the attrcache if
needed and then to zap the pagecache if it's not valid.
There are some other behavior changes in here as well. Open files are
now allowed to have their caches invalidated. I see no reason why we'd
want to keep stale data around just because a file is open. Also,
cifs_revalidate_cache uses the server_eof for revalidating the file
size since that should more closely match the size of the file on the
server.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 6ccf7262d1b7..e9f7ecc2714b 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -739,7 +739,7 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) int isValid = 1; if (direntry->d_inode) { - if (cifs_revalidate(direntry)) + if (cifs_revalidate_dentry(direntry)) return 0; } else { cFYI(1, ("neg dentry 0x%p name = %s", |