Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217069
b: refs/heads/master
c: baf57a0
h: refs/heads/master
i:
  217067: 74e7003
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 23, 2010
1 parent bbe5b78 commit fe48124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1bacf9eb2fd0e7ef870acf84b9e3b157dcfa7dc
refs/heads/master: baf57a09e9d87b14be5e2788828169394a2525ab
6 changes: 2 additions & 4 deletions trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,6 @@ static inline
int readdir_search_pagecache(nfs_readdir_descriptor_t *desc)
{
int res = -EAGAIN;
desc->page_index = 0;

if (*desc->dir_cookie == 0)
desc->cache_entry_index = 0;

while (1) {
res = find_cache_page(desc);
Expand Down Expand Up @@ -589,6 +585,7 @@ int uncached_readdir(nfs_readdir_descriptor_t *desc, void *dirent,
goto out_release;
}

desc->page_index = 0;
desc->page = page;
status = nfs_do_filldir(desc, dirent, filldir);

Expand Down Expand Up @@ -653,6 +650,7 @@ static int nfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
if (res == -ETOOSMALL && desc->plus) {
clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags);
nfs_zap_caches(inode);
desc->page_index = 0;
desc->plus = 0;
desc->eof = 0;
continue;
Expand Down

0 comments on commit fe48124

Please sign in to comment.