summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-04-16 09:35:27 +1000
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-04-30 22:17:18 -0700
commit1f4eab7e7c1d90dcd8ca4d7c064ee78dfbb345eb (patch)
tree06c431bedac14bd907e616c390743795abfb1622 /Documentation
parent74dd34e6e8bb127ff4c182423154b294729b663b (diff)
NFS: Set meaningful value for fattr->time_start in readdirplus results.
Don't use uninitialsed value for fattr->time_start in readdirplus results. The 'fattr' structure filled in by nfs3_decode_direct does not get a value for ->time_start set. Thus if an entry is for an inode that we already have in cache, when nfs_readdir_lookup calls nfs_fhget, it will call nfs_refresh_inode and may update the inode with out-of-date information. Directories are read a page at a time, so each page could have a different timestamp that "should" be used to set the time_start for the fattr for info in that page. However storing the timestamp per page is awkward. (We could stick in the first 4 bytes and only read 4092 bytes, but that is a bigger code change than I am interested it). This patch ignores the readdir_plus attributes if a readdir finds the information already in cache, and otherwise sets ->time_start to the time the readdir request was sent to the server. It might be nice to store - in the directory inode - the time stamp for the earliest readdir request that is still in the page cache, so that we don't ignore attribute data that we don't have to. This patch doesn't do that. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions