From 1196182a8e4fbfe612b977b2a30eda5480806c1b Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Fri, 10 Dec 2010 11:39:28 -0500 Subject: [PATCH] minor changes cosmetic: renaming do_recovery to recover_stateid removing client_state_remove() from setattr because we'll do it on close --- daemon/nfs41_compound.c | 4 ++-- daemon/setattr.c | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/daemon/nfs41_compound.c b/daemon/nfs41_compound.c index 20a32ca..73751cd 100644 --- a/daemon/nfs41_compound.c +++ b/daemon/nfs41_compound.c @@ -210,7 +210,7 @@ static int recover_client_state( return status; } -static bool_t do_recovery(nfs_argop4 *argop, nfs41_session *session) +static bool_t recover_stateid(nfs_argop4 *argop, nfs41_session *session) { stateid_arg *stateid = NULL; stateid4 *source = NULL; @@ -398,7 +398,7 @@ restart_recovery: if (!try_recovery) goto out; - if (do_recovery(&compound->args.argarray[compound->res.resarray_count-1], + if (recover_stateid(&compound->args.argarray[compound->res.resarray_count-1], session)) goto retry; goto out; diff --git a/daemon/setattr.c b/daemon/setattr.c index 7803ceb..f476857 100644 --- a/daemon/setattr.c +++ b/daemon/setattr.c @@ -481,12 +481,6 @@ static int handle_setattr(nfs41_upcall *upcall) status = ERROR_NOT_SUPPORTED; break; } - - switch (args->set_class) { - case FileAllocationInformation: - case FileEndOfFileInformation: - client_state_remove(state); - } out: free(args->buf); return status;