[PATCH] nfsd: check error status from nfsd_sync_dir
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Thu, 19 Jan 2006 01:43:13 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:24 +0000 (19:20 -0800)
commitf193fbab2e4710f629e7c1859d4908646b47b126
treef452b246ad608d2b53cf80a2ac79f77b347739df
parent6b192832daae6d141063c49ae1ded6f7dddee50e
[PATCH] nfsd: check error status from nfsd_sync_dir

Change nfsd_sync_dir to return an error if ->sync fails, and pass that error
up through the stack.  This involves a number of rearrangements of error
paths, and care to distinguish between Linux -errno numbers and NFSERR
numbers.

In the 'create' routines, we continue with the 'setattr' even if a previous
sync_dir failed.

This patch is quite different from Takashi's in a few ways, but there is still
a strong lineage.

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
include/linux/nfsd/nfsd.h