nfsd: cleanup setting of default max_block_size
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 30 Jan 2012 21:18:35 +0000 (16:18 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 3 Feb 2012 20:32:41 +0000 (15:32 -0500)
commit87b0fc7deb5feccf93b022f6a976e8441152dbb2
treec263e3d504cb2d31ef8c91658da056485d014bc3
parent9f912ceb7ed1df1ed98ad2c28995dd66529a690a
nfsd: cleanup setting of default max_block_size

Move calculation of the default into a helper function.

Get rid of an unused variable "err" while we're there.

Thanks to Mi Jinlong for catching an arithmetic error in a previous
version.

Cc: Mi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfssvc.c