]> err.no Git - linux-2.6/commit
[PATCH] knfsd: Fix some more errno/nfserr confusion in vfs.c
authorNeilBrown <neilb@suse.de>
Thu, 19 Jan 2006 01:43:50 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:28 +0000 (19:20 -0800)
commit45bd3b3dffaa9fb1706fe001bf66276d0997a850
tree9b5a8dc7f619cea36b3ad87d0dbd4545e24d0336
parent7fcd53303de8dbbed863f6471ca92eb96a1faa28
[PATCH] knfsd: Fix some more errno/nfserr confusion in vfs.c

nfsd_sync* return an errno, which usually needs to be converted to an errno,
sometimes immediately, sometimes a little later.

Also, nfsd_setattr returns an nfserr which SHOULDN'T be converted from
an errno (because it isn't one).

Also some tidyups of the form:
  err = XX
  err = nfserrno(err)
and
  err = XX
  if (err)
      err = nfserrno(err)
become
  err = nfserrno(XX)

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/vfs.c