Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19316
b: refs/heads/master
c: caf7360
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 1, 2006
1 parent 6706fa8 commit 2235137
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 389d1ea50849f84c3a9f8640fcb66827746b4ab4
refs/heads/master: caf736085f2f0d22a992a855d9caae14973f7ea4
5 changes: 4 additions & 1 deletion trunk/fs/smbfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ smb_readdir(struct file *filp, void *dirent, filldir_t filldir)
ctl.valid = 1;
read_really:
result = server->ops->readdir(filp, dirent, filldir, &ctl);
if (result == -ERESTARTSYS && page)
ClearPageUptodate(page);
if (ctl.idx == -1)
goto invalid_cache; /* retry */
ctl.head.end = ctl.fpos - 1;
Expand All @@ -217,7 +219,8 @@ smb_readdir(struct file *filp, void *dirent, filldir_t filldir)
if (page) {
cache->head = ctl.head;
kunmap(page);
SetPageUptodate(page);
if (result != -ERESTARTSYS)
SetPageUptodate(page);
unlock_page(page);
page_cache_release(page);
}
Expand Down

0 comments on commit 2235137

Please sign in to comment.