]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
AFS: fix a couple of problems with unlinking AFS files
authorDavid Howells <dhowells@redhat.com>
Fri, 11 May 2007 05:22:20 +0000 (22:22 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 11 May 2007 15:29:32 +0000 (08:29 -0700)
commit0f300ca9284caabdd2c07c7f91b90f1f530f614e
tree12c64af9cbaeafbe47e63872a750badb623a7e81
parent9d577b6a31a53a19d3b0fe414d645a61ef201846
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>
fs/afs/file.c
fs/afs/inode.c
fs/afs/super.c
fs/afs/vnode.c