NFS: Fix an Oops in nfs_setattr()
commitd0769f552d8389cb6fe23b65b71bec7d9ba6b446
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 19 Apr 2007 20:31:23 +0000 (19 16:31 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 May 2007 00:05:59 +0000 (1 17:05 -0700)
treecdd649ad4232fce73872c9543a6f62f34f2b0e9a
parent12b1ca6601c0ff4bc4fe44f8d631cd3eeaf18c88
NFS: Fix an Oops in nfs_setattr()

NFS: Fix an Oops in nfs_setattr()

It looks like nfs_setattr() and nfs_rename() also need to test whether the
target is a regular file before calling nfs_wb_all()...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/dir.c
fs/nfs/inode.c