]> git.hungrycats.org Git - linux/commit
[PATCH] nfsd4: move code to truncate on open to separate function
authorNeil Brown <neilb@cse.unsw.edu.au>
Wed, 20 Oct 2004 01:27:48 +0000 (18:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:27:48 +0000 (18:27 -0700)
commitdd14459e10e4b660a7f2fa6585381a674061e887
treec9c682b4c08d694a68f57552052a90bf29d9ed33
parent71dd672ecf246c2683c3094fd7a80d023c39fc0c
[PATCH] nfsd4: move code to truncate on open to separate function

for OPEN with O_TRUNC, if the truncate fails, the open fails.  for
nfs4_open_upgrade, this means undo the get_write_access.  for new OPENs, this
means release the newly created stateid.

Signed-off-by: Andy Adamson <andros@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4state.c