nfsd4.1: common slot allocation size calculation
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 25 Oct 2009 00:52:16 +0000 (20:52 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 27 Oct 2009 23:34:43 +0000 (19:34 -0400)
commitefe0cb6d5a1f20ad4df045a055048afed4c5e660
tree850a3205944995a78f321cac0ed04cb260055d14
parentdd829c45640ff14d7a039af40b3b3975f1b2e484
nfsd4.1: common slot allocation size calculation

We do the same calculation in a couple places; use a helper function,
and add a little documentation, in the hopes of preventing bugs like
that fixed in the last patch.

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