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)
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>

No differences found