freebsd-dev/sys/cddl
Andriy Gapon abc37121c4 l2arc: do not call trim_map_free() for blocks with zero b_asize
b_asize can be zero if the block is compressed into an empty block
(ZIO_COMPRESS_EMPTY) and the trim code asserts that meaningless
zero-sized trimming is not attempted.
The logic for calling trim_map_free() is extracted into a new function
l2arc_trim() to minimize code duplication.

PR:		203473
Reported by:	Willem Jan Withagen <wjw@digiware.nl>
Tested by:	Willem Jan Withagen <wjw@digiware.nl>
MFC after:	11 days
2015-10-30 12:00:34 +00:00
..
boot/zfs MFV r274273: 2014-11-10 08:20:21 +00:00
compat/opensolaris Expose an interface to determine if an ACE is inherited. 2015-09-04 00:14:20 +00:00
contrib/opensolaris l2arc: do not call trim_map_free() for blocks with zero b_asize 2015-10-30 12:00:34 +00:00
dev Rename remaining linux32 symbols such as linux_sysent[] and 2015-10-22 21:28:20 +00:00