nfsd4.1: fix session memory use calculation
authorJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 21 Oct 2009 21:54:13 +0000 (17:54 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 27 Oct 2009 23:34:43 +0000 (19:34 -0400)
commitdd829c45640ff14d7a039af40b3b3975f1b2e484
treee19e0b89419521e5baeb095ca858493a2d47bcf7
parentdc7a08166f3a5f23e79e839a8a88849bd3397c32
nfsd4.1: fix session memory use calculation

Unbalanced calculations on creation and destruction of sessions could
cause our estimate of cache memory used to become negative, sometimes
resulting in spurious SERVERFAULT returns to client CREATE_SESSION
requests.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c