MB-25442: Revert "MB-25179: Refactor: Use switch to check for BufferLoan enum"
MB-25442: Revert "MB-25179: Refactor: Use switch to check for BufferLoan enum"

Part of the patch series introducing a performace regression

This reverts commit a08bb265d16823e6a59e1e4692a740c8cd844c9d.

Change-Id: Icdbfa72aa63d7f1ded6c8cb2b246df6979d7a41e
Reviewed-on: http://review.couchbase.org/81740
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>

daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine