l2arc: try to fix write size calculation broken by Compressed ARC commit
authoravg <avg@FreeBSD.org>
Sat, 25 Feb 2017 17:03:48 +0000 (17:03 +0000)
committeravg <avg@FreeBSD.org>
Sat, 25 Feb 2017 17:03:48 +0000 (17:03 +0000)
commitad87994751d3484d8b54d07df3350cfa59c53294
tree210f4a37708d2abc5dd02963984c72e3abfe791b
parentd895ce4e14b229581545c829571b87366e5261e2
l2arc: try to fix write size calculation broken by Compressed ARC commit

While there, make a change to not evict a first buffer outside the
requested eviciton range.

To do:
- give more consistent names to the size variables
- upstream to OpenZFS

PR: 216178
Reported by: lev
Tested by: lev
MFC after: 2 weeks
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c