From: David Shaw Date: Thu, 19 Jan 2006 01:43:51 +0000 (-0800) Subject: [PATCH] knfsd: Provide missing NFSv2 part of patch for checking vfs_getattr. X-Git-Tag: v2.6.16-rc2~279 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=846f2fcd77850ef8f0aab46df9cadd5c35a5fef0;p=pandora-kernel.git [PATCH] knfsd: Provide missing NFSv2 part of patch for checking vfs_getattr. A recent patch which checked the return status of vfs_getattr in nfsd, completely missed the nfsproc.c (NFSv2) part. Here is it. This patch moved the call to vfs_getattr from the xdr encoding (at which point it is too late to return an error) to the call handling. This means several calls to vfs_getattr are needed in nfsproc.c. Many are encapsulated in nfsd_return_attrs and nfsd_return_dirop. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed