]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Clean up nfs4_setup_sequence
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 16 Jun 2010 13:52:25 +0000 (09:52 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 Jun 2010 17:24:01 +0000 (13:24 -0400)
commit0236a3ec29d45d75f00c5e9030f38d9118f7ecd4
treecedbb039984d1bff14977c36ced8d04a9d878b16
parent240f57558125221615249f8cd0d4c5f1f5ccf4cc
NFSv4.1: Clean up nfs4_setup_sequence

Firstly, there is little point in first zeroing out the entire struct
nfs4_sequence_res, and then initialising all fields save one. Just
initialise the last field to zero...

Secondly, nfs41_setup_sequence() has only 2 possible return values: 0, or
-EAGAIN, so there is no 'terminate rpc task' case.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c