|
Last change
on this file since 2614 was
2504,
checked in by andersk, 12 years ago
|
|
OpenAFS: Apply upstream patch for getcwd() ENOENT bug (Scripts #387)
This patch from http://gerrit.openafs.org/10774 seems to fix our
problem with getcwd() occasionally getting stuck returning ENOENT.
|
|
File size:
432 bytes
|
| Rev | Line | |
|---|
| [2504] | 1 | diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c |
|---|
| 2 | index fa0ad91..6059add 100644 |
|---|
| 3 | --- a/src/afs/LINUX/osi_vnodeops.c |
|---|
| 4 | +++ b/src/afs/LINUX/osi_vnodeops.c |
|---|
| 5 | @@ -1198,10 +1198,9 @@ afs_linux_dentry_revalidate(struct dentry *dp, int flags) |
|---|
| 6 | if (credp) |
|---|
| 7 | crfree(credp); |
|---|
| 8 | |
|---|
| 9 | - if (!valid) { |
|---|
| 10 | - shrink_dcache_parent(dp); |
|---|
| 11 | - d_drop(dp); |
|---|
| 12 | - } |
|---|
| 13 | + if (!valid) |
|---|
| 14 | + d_invalidate(dp); |
|---|
| 15 | + |
|---|
| 16 | return valid; |
|---|
| 17 | |
|---|
| 18 | bad_dentry: |
|---|
Note: See
TracBrowser
for help on using the repository browser.