diff options
author | David Howells <dhowells@redhat.com> | 2007-05-11 01:22:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-11 11:29:32 -0400 |
commit | 0f300ca9284caabdd2c07c7f91b90f1f530f614e (patch) | |
tree | 12c64af9cbaeafbe47e63872a750badb623a7e81 /fs/afs/super.c | |
parent | 9d577b6a31a53a19d3b0fe414d645a61ef201846 (diff) |
AFS: fix a couple of problems with unlinking AFS files
Fix a couple of problems with unlinking AFS files.
(1) The parent directory wasn't being updated properly between unlink() and
the following lookup().
It seems that, for some reason, invalidate_remote_inode() wasn't
discarding the directory contents correctly, so this patch calls
invalidate_inode_pages2() instead on non-regular files.
(2) afs_vnode_deleted_remotely() should handle vnodes that don't have a
source server recorded without oopsing.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/afs/super.c')
-rw-r--r-- | fs/afs/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/afs/super.c b/fs/afs/super.c index d24be334b608..422f532b9b62 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -488,6 +488,7 @@ static struct inode *afs_alloc_inode(struct super_block *sb) | |||
488 | vnode->flags = 1 << AFS_VNODE_UNSET; | 488 | vnode->flags = 1 << AFS_VNODE_UNSET; |
489 | vnode->cb_promised = false; | 489 | vnode->cb_promised = false; |
490 | 490 | ||
491 | _leave(" = %p", &vnode->vfs_inode); | ||
491 | return &vnode->vfs_inode; | 492 | return &vnode->vfs_inode; |
492 | } | 493 | } |
493 | 494 | ||
@@ -498,7 +499,7 @@ static void afs_destroy_inode(struct inode *inode) | |||
498 | { | 499 | { |
499 | struct afs_vnode *vnode = AFS_FS_I(inode); | 500 | struct afs_vnode *vnode = AFS_FS_I(inode); |
500 | 501 | ||
501 | _enter("{%lu}", inode->i_ino); | 502 | _enter("%p{%x:%u}", inode, vnode->fid.vid, vnode->fid.vnode); |
502 | 503 | ||
503 | _debug("DESTROY INODE %p", inode); | 504 | _debug("DESTROY INODE %p", inode); |
504 | 505 | ||